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

25 lines (24 loc) 764 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const command_1 = require("@oclif/command"); const encryptor_1 = require("../../services/tf/encryptor"); class Encrypt extends command_1.Command { async run() { const { flags } = this.parse(Encrypt); await (0, encryptor_1.encryptTfState)(flags); } } exports.default = Encrypt; Encrypt.description = "Run a command with secrets injected into the environment"; Encrypt.flags = { help: command_1.flags.help({ char: "h" }), "enc-key": command_1.flags.string({ description: "Encryption Key", required: false, }), file: command_1.flags.string({ char: "f", description: "Path to file", required: false, }), };