UI for Zipcoin Blue

logout.js 968B

12345678910111213141516171819202122232425262728
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. const tslib_1 = require("tslib");
  4. const cli_utils_1 = require("@ionic/cli-utils");
  5. const command_1 = require("@ionic/cli-utils/lib/command");
  6. let LogoutCommand = class LogoutCommand extends command_1.Command {
  7. run(inputs, options) {
  8. return tslib_1.__awaiter(this, void 0, void 0, function* () {
  9. if (!(yield this.env.session.isLoggedIn())) {
  10. this.env.log.info('You are already logged out.');
  11. return;
  12. }
  13. yield this.env.session.logout();
  14. this.env.log.ok('You are logged out.');
  15. });
  16. }
  17. };
  18. LogoutCommand = tslib_1.__decorate([
  19. command_1.CommandMetadata({
  20. name: 'logout',
  21. type: 'global',
  22. backends: [cli_utils_1.BACKEND_LEGACY, cli_utils_1.BACKEND_PRO],
  23. description: '',
  24. visible: false,
  25. })
  26. ], LogoutCommand);
  27. exports.LogoutCommand = LogoutCommand;