nativescript
Version:
Command-line interface for building NativeScript projects
31 lines (30 loc) • 908 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.GenerateCommand = void 0;
const yok_1 = require("../common/yok");
class GenerateCommand {
constructor($logger, $errors) {
this.$logger = $logger;
this.$errors = $errors;
this.allowedParameters = [];
}
async execute(_rawArgs) {
try {
this.$logger.info("If you have ideas for this command, please discuss at https://nativescript.org/discord");
}
catch (error) {
this.$errors.fail(error.message);
}
}
async canExecute(rawArgs) {
this.setExecutionOptions(rawArgs);
this.validateExecutionOptions();
return true;
}
validateExecutionOptions() {
}
setExecutionOptions(rawArgs) {
}
}
exports.GenerateCommand = GenerateCommand;
yok_1.injector.registerCommand("generate", GenerateCommand);