@forge/cli
12.22.012.22.0-experimental-04cc2b9
out/command-line/register-authentication-command.js~
out/command-line/register-authentication-command.jsModified+3−4
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,7 +1,9 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
-exports.registerCommands = exports.whoamiCommandHandler = exports.loginCommandHandler = void 0;
+exports.loginCommandHandler = loginCommandHandler;
+exports.whoamiCommandHandler = whoamiCommandHandler;
+exports.registerCommands = registerCommands;
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");
@@ -39,9 +41,8 @@
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')
@@ -79,9 +80,8 @@
}
throw error;
}
}
-exports.whoamiCommandHandler = whoamiCommandHandler;
function registerWhoAmICommand({ cmd, ui, services: { credentialStore, userRepository } }) {
cmd
.command('whoami')
.description(cli_shared_1.Text.whoami.cmd)
@@ -91,6 +91,5 @@
registerLoginCommand(deps);
registerLogoutCommand(deps);
registerWhoAmICommand(deps);
}
-exports.registerCommands = registerCommands;
//# sourceMappingURL=register-authentication-command.js.map
\ No newline at end of file