1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | const command_1 = require("@oclif/command");
|
4 | class Goodbye extends command_1.Command {
|
5 | async run() {
|
6 | const { args, flags } = this.parse(Goodbye);
|
7 | const name = flags.name || 'world';
|
8 | this.log(`hello ${name} from /root/cli/tmp/examples/example-multi-ts/src/commands/goodbye.ts`);
|
9 | if (args.file && flags.force) {
|
10 | this.log(`you input --force and --file: ${args.file}`);
|
11 | }
|
12 | }
|
13 | }
|
14 | Goodbye.description = 'describe the command here';
|
15 | Goodbye.flags = {
|
16 | help: command_1.flags.help({ char: 'h' }),
|
17 |
|
18 | name: command_1.flags.string({ char: 'n', description: 'name to print' }),
|
19 |
|
20 | force: command_1.flags.boolean({ char: 'f' }),
|
21 | };
|
22 | Goodbye.args = [{ name: 'file' }];
|
23 | exports.default = Goodbye;
|