UNPKG

@aminya/dotenv-vault

Version:

A secrets manager for .env files – from the same people that pioneered dotenv.

25 lines (24 loc) 846 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const core_1 = require("@oclif/core"); const decrypt_service_1 = require("../../services/local/decrypt-service"); class LocalDecrypt extends core_1.Command { async run() { const { args } = await this.parse(LocalDecrypt); const dotenvKey = args.DOTENV_KEY; await new decrypt_service_1.LocalDecryptService({ cmd: this, dotenvKey: dotenvKey }).run(); } } exports.default = LocalDecrypt; LocalDecrypt.description = '[DEPRECATED][Switch to dotenvx: github.com/dotenvx/dotenvx] Decrypt .env.vault from local only'; LocalDecrypt.examples = [ '<%= config.bin %> <%= command.id %>', ]; LocalDecrypt.args = [ { name: 'DOTENV_KEY', required: true, description: 'Set decryption key', hidden: false, }, ];