UNPKG

@onboardbase/cli

Version:

[![Version](https://img.shields.io/npm/v/@onboardbase/cli.svg)](https://www.npmjs.com/package/@onboardbase/cli) [![Downloads/week](https://img.shields.io/npm/dw/@onboardbase/cli.svg)](https://www.npmjs.com/package/@onboardbase/cli) [![License](https://img

33 lines (32 loc) 981 B
"use strict"; 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" }];