UNPKG

create-dxcli

Version:
16 lines (12 loc) 312 B
const {Command, flags} = require('@dxcli/command') const {cli} = require('cli-ux') class CLI extends Command { async run() { const name = this.flags.name || 'world' cli.log(`hello ${name}!`) } } CLI.flags = { name: flags.string({char: 'n', description: 'name to print'}), } module.exports = CLI