@forge/cli
12.22.0-experimental-04cc2b912.23.0-next.7-experimental-44b7a12
out/command-line/register-authentication-command.js~
out/command-line/register-authentication-command.jsModified+4−3
Index: package/out/command-line/register-authentication-command.js
===================================================================
--- package/out/command-line/register-authentication-command.js
+++ package/out/command-line/register-authentication-command.js
@@ -1,9 +1,7 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
-exports.loginCommandHandler = loginCommandHandler;
-exports.whoamiCommandHandler = whoamiCommandHandler;
-exports.registerCommands = registerCommands;
+exports.registerCommands = exports.whoamiCommandHandler = exports.loginCommandHandler = void 0;
const tslib_1 = require("tslib");
const child_process_1 = tslib_1.__importDefault(require("child_process"));
const cli_shared_1 = require("@forge/cli-shared");
const anon_user_id_1 = require("./anon-user-id");
@@ -41,8 +39,9 @@
catch (error) {
throw error instanceof cli_shared_1.UserNotFoundError ? new cli_shared_1.UserNotFoundError(cli_shared_1.Text.login.error) : error;
}
}
+exports.loginCommandHandler = loginCommandHandler;
function registerLoginCommand({ cmd, ui, commands: { loginCommand } }) {
const instructionsUrl = (0, cli_shared_1.getInstructionsUrl)();
cmd
.command('login')
@@ -80,8 +79,9 @@
}
throw error;
}
}
+exports.whoamiCommandHandler = whoamiCommandHandler;
function registerWhoAmICommand({ cmd, ui, services: { credentialStore, userRepository } }) {
cmd
.command('whoami')
.description(cli_shared_1.Text.whoami.cmd)
@@ -91,5 +91,6 @@
registerLoginCommand(deps);
registerLogoutCommand(deps);
registerWhoAmICommand(deps);
}
+exports.registerCommands = registerCommands;
//# sourceMappingURL=register-authentication-command.js.map
\ No newline at end of file