@amaabca/lexcmdcli
Version:
CLI Tool for interacting with AWS Lex API
29 lines (28 loc) • 797 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const command_1 = require("@oclif/command");
const lex_client_1 = require("../lex-client");
class List extends command_1.Command {
async run() {
const { args, flags } = this.parse(List);
if (flags.verbose) {
console.log(args);
console.log(flags);
}
const client = new lex_client_1.default({ verbose: flags.verbose });
console.log(await client.list());
}
}
exports.default = List;
List.description = 'Command for list all V2 Lex Bots';
List.examples = [
`
$ lexcmdcli list
$ lexcmdcli list -v
`,
];
List.flags = {
help: command_1.flags.help({ char: 'h' }),
verbose: command_1.flags.boolean({ char: 'v' }),
};
List.args = [];