@aminya/dotenv-vault
Version:
A secrets manager for .env files – from the same people that pioneered dotenv.
25 lines (24 loc) • 734 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const core_1 = require("@oclif/core");
const decrypt_service_1 = require("../services/decrypt-service");
class Decrypt extends core_1.Command {
async run() {
const { args } = await this.parse(Decrypt);
const dotenvKey = args.DOTENV_KEY;
await new decrypt_service_1.DecryptService({ cmd: this, dotenvKey: dotenvKey }).run();
}
}
exports.default = Decrypt;
Decrypt.description = 'Decrypt .env.vault locally';
Decrypt.examples = [
'<%= config.bin %> <%= command.id %>',
];
Decrypt.args = [
{
name: 'DOTENV_KEY',
required: true,
description: 'Set decryption key',
hidden: false,
},
];