import {ArgvTheme} from "./themes.js" import {Analysis} from "../analysis/types/analysis.js" import {CommandTree} from "../analysis/types/commands.js" export type CliConfig = { name: string commands: C help?: string indent?: string readme?: string columns?: number theme?: ArgvTheme summarize?: boolean onExit?: (code: number) => void onHelp?: (help: string) => void onMistake?: (mistake: string) => void } export function cliConfig(c: CliConfig) { return c } export type CliResult = { bin: string script: string execute: () => Promise } & Analysis