const {Command, flags} = require('@dxcli/command') const {cli} = require('cli-ux') <%_ const klass = _.upperFirst(_.camelCase(name.split(':').slice(-1).join(':') + ':command')) _%> class <%- klass %> extends Command { async run() { const name = this.flags.name || 'world' cli.log(`hello ${name} from <%- name %>!`) } } <%- klass %>.flags = { name: flags.string({char: 'n', description: 'name to print'}), } module.exports = <%- klass %>