@onboardbase/cli
Version:
[](https://www.npmjs.com/package/@onboardbase/cli) [](https://www.npmjs.com/package/@onboardbase/cli) [ • 981 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const command_1 = require("@oclif/command");
const common_1 = require("../../common");
const tf_service_1 = require("../../services/tf/tf.service");
class TF extends common_1.BaseCommand {
getService(configManager) {
return new tf_service_1.TFCommandService(configManager);
}
getArgsAndFlags() {
return this.parse(TF);
}
}
exports.default = TF;
TF.description = "Run a command with secrets injected into the environment";
TF.flags = {
help: command_1.flags.help({ char: "h" }),
command: command_1.flags.string({
char: "C",
description: "Terraform command to execute",
}),
file: command_1.flags.string({
char: "f",
description: "Path to file",
required: false,
}),
"enc-key": command_1.flags.string({
description: "Encryption Key",
required: false,
}),
};
TF.args = [{ name: "command" }];