@aminya/dotenv-vault
Version:
A secrets manager for .env files – from the same people that pioneered dotenv.
27 lines (26 loc) • 870 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const core_1 = require("@oclif/core");
const whoami_service_1 = require("../services/whoami-service");
class Whoami extends core_1.Command {
async run() {
const { flags } = await this.parse(Whoami);
const dotenvMe = flags.dotenvMe;
await new whoami_service_1.WhoamiService({ cmd: this, dotenvMe: dotenvMe }).run();
}
}
exports.default = Whoami;
Whoami.description = 'Display the current logged in user';
Whoami.examples = [
'<%= config.bin %> <%= command.id %>',
];
Whoami.flags = {
dotenvMe: core_1.Flags.string({
char: 'm',
description: 'Pass .env.me (DOTENV_ME) credential directly (rather than reading from .env.me file)',
hidden: false,
multiple: false,
env: 'DOTENV_ME',
required: false,
}),
};