bod
Version:
Boilerplate CLI App
27 lines (26 loc) • 655 B
JavaScript
import { __awaiter } from "tslib";
class BaseCommand {
constructor(options) {
const { name, description, usage, alias } = options;
this.name = name;
this.description = description;
this.usage = usage;
this.alias = alias !== null && alias !== void 0 ? alias : this.name[0];
}
run(_appName) {
return __awaiter(this, void 0, void 0, function* () { });
}
getName() {
return this.name;
}
getDescription() {
return this.description;
}
getUsage() {
return this.usage;
}
getAlias() {
return this.alias;
}
}
export default BaseCommand;