UNPKG

@supernovaio/cli

Version:

Supernova.io Command Line Interface

41 lines (39 loc) 2.06 kB
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="4d7556fb-dc54-5513-91d4-1e36e7d0c62d")}catch(e){}}(); var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (this && this.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; import { SentryTraced } from "@sentry/nestjs"; import { z } from "zod"; import { VaultService } from "../services/index.js"; import { commonFlags, getTargetEnv, SentryCommand } from "../types/index.js"; export default class Logout extends SentryCommand { static args = {}; static description = "Logout from the Supernova"; static examples = ["<%= config.bin %> <%= command.id %>"]; static flags = commonFlags; vaultService = new VaultService(); get commandId() { return Logout.id; } get configSchema() { return z.object({}); } async run() { await this.vaultService.deleteTokensFromVault(getTargetEnv()); this.log("You have been logged out"); } } __decorate([ SentryTraced(), __metadata("design:type", Function), __metadata("design:paramtypes", []), __metadata("design:returntype", Promise) ], Logout.prototype, "run", null); //# sourceMappingURL=logout.js.map //# debugId=4d7556fb-dc54-5513-91d4-1e36e7d0c62d