UNPKG

@amplitude/ampli

Version:

Amplitude CLI

17 lines (16 loc) 729 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const command_1 = require("@oclif/command"); const base_1 = require("../base"); const whoami_1 = require("../actions/whoami"); class WhoAmI extends base_1.default { async run() { const { flags: whoamiFlags } = this.parse(WhoAmI); this.user = await new whoami_1.default(whoamiFlags, {}, this.actionConfig(WhoAmI.id)).run(); } } exports.default = WhoAmI; WhoAmI.id = 'whoami'; WhoAmI.description = 'display user information'; WhoAmI.flags = Object.assign(Object.assign({}, base_1.default.commonFlags), { zone: command_1.flags.string(Object.assign(Object.assign({}, base_1.zoneFlagOptions), { default: '' })) }); WhoAmI.args = [];