(spec: CommandSpec)
| 29 | } |
| 30 | |
| 31 | export function defineCommand(spec: CommandSpec): Command { |
| 32 | return { |
| 33 | name: spec.name, |
| 34 | description: spec.description, |
| 35 | usage: spec.usage, |
| 36 | options: spec.options, |
| 37 | examples: spec.examples, |
| 38 | apiDocs: spec.apiDocs, |
| 39 | execute: spec.run, |
| 40 | }; |
| 41 | } |
| 42 | |
| 43 | /** Global flags shared by all commands — drives the parser's type resolution. */ |
| 44 | export const GLOBAL_OPTIONS: OptionDef[] = [ |
no outgoing calls
no test coverage detected