Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/sxzz/monoman. Manage monorepo common files.
Something went wrong. Try again.
1234567891011121314151617181920import { cac, type CAC } from 'cac'import { description, name, version } from '../package.json'import { run } from '.'
export const cli: CAC = cac(name).version(version).help()
cli .command('', description) .option('-w, --write', 'Write the files if they are not up to date', { default: true, }) .option('-c, --check', 'Check if the files are up to date', { default: false, }) .action((options) => run(options))
export function runCLI(): void { cli.parse()}