1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | const command_1 = require("../lib/command");
|
4 | const open_1 = require("../lib/open");
|
5 | class SignupCommand extends command_1.Command {
|
6 | async getMetadata() {
|
7 | return {
|
8 | name: 'signup',
|
9 | type: 'global',
|
10 | summary: 'Create an Ionic account',
|
11 | description: `
|
12 | If you are having issues signing up, please get in touch with our Support[^support-request].
|
13 | `,
|
14 | footnotes: [
|
15 | {
|
16 | id: 'support-request',
|
17 | url: 'https://ion.link/support-request',
|
18 | },
|
19 | ],
|
20 | };
|
21 | }
|
22 | async run(inputs, options) {
|
23 | const dashUrl = this.env.config.getDashUrl();
|
24 | await open_1.openUrl(`${dashUrl}/signup?source=cli`);
|
25 | this.env.log.ok('Launched signup form in your browser!');
|
26 | }
|
27 | }
|
28 | exports.SignupCommand = SignupCommand;
|