UNPKG

@supernovaio/cli

Version:

Supernova.io Command Line Interface

41 lines (39 loc) 1.98 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]="3089a071-94d1-5c70-be63-bfa08726fc0a")}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 { commonFlags, SentryCommand } from "../types/index.js"; export default class Login extends SentryCommand { static args = {}; static description = "Login to the Supernova"; static examples = ["<%= config.bin %> <%= command.id %>"]; static flags = commonFlags; get commandId() { return Login.id; } get configSchema() { return z.object({}); } async run() { const success = await this.performLogin(); if (!success) { this.error("Login timed out. Please try again."); } } } __decorate([ SentryTraced(), __metadata("design:type", Function), __metadata("design:paramtypes", []), __metadata("design:returntype", Promise) ], Login.prototype, "run", null); //# sourceMappingURL=login.js.map //# debugId=3089a071-94d1-5c70-be63-bfa08726fc0a