packdir-cli
Version:
Packdir CLI
27 lines • 916 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
const core_1 = require("@oclif/core");
class List extends core_1.Command {
async run() {
var _a;
const { args, flags } = await this.parse(List);
const name = (_a = flags.name) !== null && _a !== void 0 ? _a : 'list';
this.log('There is no book: name.', name);
if (args.file && flags.force) {
this.log(`you input --force and --file: ${args.file}`);
}
}
}
exports.default = List;
List.description = 'List all ebooks.';
List.examples = [
'<%= config.bin %> <%= command.id %>',
];
List.flags = {
// flag with a value (-n, --name=VALUE)
name: core_1.Flags.string({ char: 'n', description: 'name to print' }),
// flag with no value (-f, --force)
force: core_1.Flags.boolean({ char: 'f' }),
};
List.args = [{ name: 'file' }];
//# sourceMappingURL=list.js.map
;