UNPKG

alwaysai

Version:

The alwaysAI command-line interface (CLI)

15 lines 579 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const alwayscli_1 = require("@alwaysai/alwayscli"); const cognito_auth_1 = require("../../util/cognito-auth"); const chalk_1 = require("chalk"); exports.userShow = alwayscli_1.createLeaf({ name: 'show', description: 'Show the currently logged in user', options: {}, async action() { const user = await cognito_auth_1.getCurrentUser(); return user ? `Logged in as ${chalk_1.default.bold(user.getUsername())}` : 'Not logged in'; }, }); //# sourceMappingURL=show.js.map