Type interface for Semo command files. Use satisfies SemoCommand for type checking without losing literal types.
satisfies SemoCommand
import { SemoCommand } from '@semo/core'export default { command: 'mycommand', desc: 'My command description', builder: (yargs) => yargs.option('name', { type: 'string' }), handler: async (argv) => { console.log(argv.name) },} satisfies SemoCommand Copy
import { SemoCommand } from '@semo/core'export default { command: 'mycommand', desc: 'My command description', builder: (yargs) => yargs.option('name', { type: 'string' }), handler: async (argv) => { console.log(argv.name) },} satisfies SemoCommand
Optional
Type interface for Semo command files. Use
satisfies SemoCommandfor type checking without losing literal types.Example