UNPKG

create-dxcli

Version:
14 lines (11 loc) 301 B
import Command, {flags} from '@dxcli/command' import cli from 'cli-ux' export default class CLI extends Command { static flags = { name: flags.string({char: 'n', description: 'name to print'}) } async run() { const name = this.flags.name || 'world' cli.log(`hello ${name}!`) } }