#! /usr/bin/env bun import yargs from 'yargs' import { hideBin } from 'yargs/helpers' import { buildCommand } from './src/commands/build' import { watchCommand } from './src/commands/watch' import { getConfig } from './src/config' import { log } from './src/log' const config = await getConfig() log.arc.debug('Arc config: %o', config) yargs(hideBin(process.argv)) .config(config) .command(buildCommand) .command(watchCommand) // .option('entries', {}) .parse()