Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/igalklebanov/tstics.
Something went wrong. Try again.
1234567891011121314151617import { createMain } from 'citty'import { RootCommand } from './commands/root.mjs'
export interface CLI { parse(argv: string[]): Promise<void>}
export function buildCLI(): CLI { const runCLI = createMain(RootCommand)
return { parse: async (argv: string[]) => { await runCLI({ rawArgs: argv }) }, }}