@myapihq/cli 1.0.14 → 1.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commands/funnel.d.ts +7 -0
- package/dist/commands/funnel.js +120 -8
- package/dist/index.js +0 -5
- package/package.json +1 -1
- package/src/commands/funnel.ts +99 -8
- package/src/index.ts +0 -5
|
@@ -1,3 +1,10 @@
|
|
|
1
1
|
export declare function list(flags: Record<string, string | boolean>): Promise<void>;
|
|
2
2
|
export declare function create(flags: Record<string, string | boolean>): Promise<void>;
|
|
3
|
+
export declare function get(id: string, flags: Record<string, string | boolean>): Promise<void>;
|
|
4
|
+
export declare function del(id: string, flags: Record<string, string | boolean>): Promise<void>;
|
|
5
|
+
export declare function preview(id: string, flags: Record<string, string | boolean>): Promise<void>;
|
|
6
|
+
export declare function publish(id: string, flags: Record<string, string | boolean>): Promise<void>;
|
|
7
|
+
export declare function status(id: string, flags: Record<string, string | boolean>): Promise<void>;
|
|
3
8
|
export declare function push(id: string, slug: string, flags: Record<string, string | boolean>): Promise<void>;
|
|
9
|
+
export declare function verify(id: string, flags: Record<string, string | boolean>): Promise<void>;
|
|
10
|
+
export declare function run(subcommand: string | undefined, args: string[], flags: Record<string, string | boolean>): Promise<void>;
|
package/dist/commands/funnel.js
CHANGED
|
@@ -2,27 +2,81 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.list = list;
|
|
4
4
|
exports.create = create;
|
|
5
|
+
exports.get = get;
|
|
6
|
+
exports.del = del;
|
|
7
|
+
exports.preview = preview;
|
|
8
|
+
exports.publish = publish;
|
|
9
|
+
exports.status = status;
|
|
5
10
|
exports.push = push;
|
|
11
|
+
exports.verify = verify;
|
|
12
|
+
exports.run = run;
|
|
6
13
|
const sdk_1 = require("@myapihq/sdk");
|
|
7
14
|
const config_js_1 = require("../config.js");
|
|
8
15
|
const output_js_1 = require("../output.js");
|
|
9
16
|
async function list(flags) {
|
|
10
17
|
const config = (0, config_js_1.requireConfig)();
|
|
11
|
-
const
|
|
18
|
+
const orgId = flags.org || config.default_org;
|
|
19
|
+
if (!orgId)
|
|
20
|
+
(0, output_js_1.error)("Missing required arguments.\nUsage: myapi funnel list --org <id>\n(Or set defaults via: myapi config set-org <id>)");
|
|
21
|
+
const funnels = await sdk_1.funnel.listFunnels(config.api_key, orgId);
|
|
12
22
|
(0, output_js_1.printTable)(funnels);
|
|
13
23
|
}
|
|
14
24
|
async function create(flags) {
|
|
15
|
-
if (!flags['org-id'] || !flags.domain) {
|
|
16
|
-
(0, output_js_1.error)("Missing --org-id or --domain flags");
|
|
17
|
-
}
|
|
18
25
|
const config = (0, config_js_1.requireConfig)();
|
|
19
|
-
const
|
|
26
|
+
const orgId = flags.org || config.default_org;
|
|
27
|
+
const domain = flags.domain || config.default_domain;
|
|
28
|
+
if (!orgId || !domain) {
|
|
29
|
+
(0, output_js_1.error)("Missing required arguments.\nUsage: myapi funnel create --org <id> --domain <domain>\n(Or set defaults via: myapi config set-org <id> / set-domain <domain>)");
|
|
30
|
+
}
|
|
31
|
+
const funnel = await sdk_1.funnel.createFunnel(config.api_key, orgId, domain);
|
|
20
32
|
(0, output_js_1.success)(`Funnel created! ID: ${funnel.id}`);
|
|
21
33
|
}
|
|
34
|
+
async function get(id, flags) {
|
|
35
|
+
const config = (0, config_js_1.requireConfig)();
|
|
36
|
+
const orgId = flags.org || config.default_org;
|
|
37
|
+
if (!orgId || !id)
|
|
38
|
+
(0, output_js_1.error)("Missing required arguments.\nUsage: myapi funnel get <id> --org <id>\n(Or set defaults via: myapi config set-org <id>)");
|
|
39
|
+
const funnel = await sdk_1.funnel.getFunnel(config.api_key, orgId, id);
|
|
40
|
+
(0, output_js_1.printJson)(funnel);
|
|
41
|
+
}
|
|
42
|
+
async function del(id, flags) {
|
|
43
|
+
const config = (0, config_js_1.requireConfig)();
|
|
44
|
+
const orgId = flags.org || config.default_org;
|
|
45
|
+
if (!orgId || !id)
|
|
46
|
+
(0, output_js_1.error)("Missing required arguments.\nUsage: myapi funnel delete <id> --org <id>\n(Or set defaults via: myapi config set-org <id>)");
|
|
47
|
+
await sdk_1.funnel.deleteFunnel(config.api_key, orgId, id);
|
|
48
|
+
(0, output_js_1.success)(`Funnel ${id} deleted`);
|
|
49
|
+
}
|
|
50
|
+
async function preview(id, flags) {
|
|
51
|
+
const config = (0, config_js_1.requireConfig)();
|
|
52
|
+
const orgId = flags.org || config.default_org;
|
|
53
|
+
if (!orgId || !id)
|
|
54
|
+
(0, output_js_1.error)("Missing required arguments.\nUsage: myapi funnel preview <id> --org <id>\n(Or set defaults via: myapi config set-org <id>)");
|
|
55
|
+
const p = await sdk_1.funnel.previewFunnel(config.api_key, orgId, id);
|
|
56
|
+
(0, output_js_1.success)(`Preview deployed: ${p.preview_url}`);
|
|
57
|
+
}
|
|
58
|
+
async function publish(id, flags) {
|
|
59
|
+
const config = (0, config_js_1.requireConfig)();
|
|
60
|
+
const orgId = flags.org || config.default_org;
|
|
61
|
+
if (!orgId || !id)
|
|
62
|
+
(0, output_js_1.error)("Missing required arguments.\nUsage: myapi funnel publish <id> --org <id>\n(Or set defaults via: myapi config set-org <id>)");
|
|
63
|
+
const p = await sdk_1.funnel.publishFunnel(config.api_key, orgId, id);
|
|
64
|
+
(0, output_js_1.success)(`Publish job started. Status: ${p.status}`);
|
|
65
|
+
}
|
|
66
|
+
async function status(id, flags) {
|
|
67
|
+
const config = (0, config_js_1.requireConfig)();
|
|
68
|
+
const orgId = flags.org || config.default_org;
|
|
69
|
+
if (!orgId || !id)
|
|
70
|
+
(0, output_js_1.error)("Missing required arguments.\nUsage: myapi funnel status <id> --org <id>\n(Or set defaults via: myapi config set-org <id>)");
|
|
71
|
+
const s = await sdk_1.funnel.getPublishStatus(config.api_key, orgId, id);
|
|
72
|
+
(0, output_js_1.info)(`Publish Status: ${s.status}`);
|
|
73
|
+
}
|
|
22
74
|
async function push(id, slug, flags) {
|
|
23
|
-
if (!id || !slug)
|
|
24
|
-
(0, output_js_1.error)("Missing id or slug");
|
|
25
75
|
const config = (0, config_js_1.requireConfig)();
|
|
76
|
+
const orgId = flags.org || config.default_org;
|
|
77
|
+
if (!orgId || !id || !slug) {
|
|
78
|
+
(0, output_js_1.error)("Missing required arguments.\nUsage: myapi funnel push <funnel_id> <slug> --org <id> < index.html\n(Or set defaults via: myapi config set-org <id>)");
|
|
79
|
+
}
|
|
26
80
|
const html = await new Promise((resolve, reject) => {
|
|
27
81
|
let data = '';
|
|
28
82
|
process.stdin.setEncoding('utf-8');
|
|
@@ -32,6 +86,64 @@ async function push(id, slug, flags) {
|
|
|
32
86
|
});
|
|
33
87
|
if (!html)
|
|
34
88
|
(0, output_js_1.error)("No HTML provided via stdin");
|
|
35
|
-
await sdk_1.funnel.pushPage(config.api_key, id, slug, html);
|
|
89
|
+
await sdk_1.funnel.pushPage(config.api_key, orgId, id, slug, html);
|
|
36
90
|
(0, output_js_1.success)(`Pushed page to ${slug}`);
|
|
37
91
|
}
|
|
92
|
+
async function verify(id, flags) {
|
|
93
|
+
const config = (0, config_js_1.requireConfig)();
|
|
94
|
+
const orgId = flags.org || config.default_org;
|
|
95
|
+
if (!orgId || !id)
|
|
96
|
+
(0, output_js_1.error)("Missing required arguments.\nUsage: myapi funnel verify <id> --org <id> [--slug <slug>]\n(Or set defaults via: myapi config set-org <id>)");
|
|
97
|
+
const opts = {};
|
|
98
|
+
if (flags.slug)
|
|
99
|
+
opts.slug = flags.slug;
|
|
100
|
+
const v = await sdk_1.funnel.verifyFunnel(config.api_key, orgId, id, opts);
|
|
101
|
+
(0, output_js_1.printJson)(v);
|
|
102
|
+
}
|
|
103
|
+
async function run(subcommand, args, flags) {
|
|
104
|
+
if (!subcommand || (flags.help && !subcommand)) {
|
|
105
|
+
(0, output_js_1.info)('Usage: myapi funnel <subcommand>\n\nSubcommands:\n list List funnels\n create Create a funnel\n get Get funnel details\n delete Delete a funnel\n preview Deploy to a preview domain\n publish Deploy to production domain\n status Check publish status\n push Push a raw HTML page to a slug\n verify Verify links and webhooks\n\nNote: All funnel commands require the --org <id> flag.');
|
|
106
|
+
return;
|
|
107
|
+
}
|
|
108
|
+
if (flags.help) {
|
|
109
|
+
if (subcommand === 'list')
|
|
110
|
+
(0, output_js_1.info)('Usage: myapi funnel list --org <id>');
|
|
111
|
+
else if (subcommand === 'create')
|
|
112
|
+
(0, output_js_1.info)('Usage: myapi funnel create --org <id> --domain <domain>');
|
|
113
|
+
else if (subcommand === 'get')
|
|
114
|
+
(0, output_js_1.info)('Usage: myapi funnel get <id> --org <id>');
|
|
115
|
+
else if (subcommand === 'delete')
|
|
116
|
+
(0, output_js_1.info)('Usage: myapi funnel delete <id> --org <id>');
|
|
117
|
+
else if (subcommand === 'preview')
|
|
118
|
+
(0, output_js_1.info)('Usage: myapi funnel preview <id> --org <id>');
|
|
119
|
+
else if (subcommand === 'publish')
|
|
120
|
+
(0, output_js_1.info)('Usage: myapi funnel publish <id> --org <id>');
|
|
121
|
+
else if (subcommand === 'status')
|
|
122
|
+
(0, output_js_1.info)('Usage: myapi funnel status <id> --org <id>');
|
|
123
|
+
else if (subcommand === 'push')
|
|
124
|
+
(0, output_js_1.info)('Usage: myapi funnel push <funnel_id> <slug> --org <id> < index.html\n\nPushes HTML content from stdin to the specified funnel.');
|
|
125
|
+
else if (subcommand === 'verify')
|
|
126
|
+
(0, output_js_1.info)('Usage: myapi funnel verify <id> --org <id> [--slug <slug>]\n\nVerifies syntax and structure before publishing.');
|
|
127
|
+
return;
|
|
128
|
+
}
|
|
129
|
+
if (subcommand === 'list')
|
|
130
|
+
await list(flags);
|
|
131
|
+
else if (subcommand === 'create')
|
|
132
|
+
await create(flags);
|
|
133
|
+
else if (subcommand === 'get')
|
|
134
|
+
await get(args[0], flags);
|
|
135
|
+
else if (subcommand === 'delete')
|
|
136
|
+
await del(args[0], flags);
|
|
137
|
+
else if (subcommand === 'preview')
|
|
138
|
+
await preview(args[0], flags);
|
|
139
|
+
else if (subcommand === 'publish')
|
|
140
|
+
await publish(args[0], flags);
|
|
141
|
+
else if (subcommand === 'status')
|
|
142
|
+
await status(args[0], flags);
|
|
143
|
+
else if (subcommand === 'push')
|
|
144
|
+
await push(args[0], args[1], flags);
|
|
145
|
+
else if (subcommand === 'verify')
|
|
146
|
+
await verify(args[0], flags);
|
|
147
|
+
else
|
|
148
|
+
(0, output_js_1.error)(`Unknown subcommand: ${subcommand}. Run "myapi funnel --help" for a list of valid subcommands.`);
|
|
149
|
+
}
|
package/dist/index.js
CHANGED
|
@@ -44,7 +44,6 @@ const orgCmd = __importStar(require("./commands/org.js"));
|
|
|
44
44
|
const setupCmd = __importStar(require("./commands/setup.js"));
|
|
45
45
|
const configCmd = __importStar(require("./commands/config.js"));
|
|
46
46
|
const domainCmd = __importStar(require("./commands/domain.js"));
|
|
47
|
-
const emailCmd = __importStar(require("./commands/email.js"));
|
|
48
47
|
async function main() {
|
|
49
48
|
const { args, flags } = (0, utils_js_1.parseArgs)(process.argv.slice(2));
|
|
50
49
|
if (args.length === 0) {
|
|
@@ -115,9 +114,6 @@ async function main() {
|
|
|
115
114
|
case 'domain':
|
|
116
115
|
await domainCmd.run(subcommand, restArgs, flags);
|
|
117
116
|
break;
|
|
118
|
-
case 'email':
|
|
119
|
-
await emailCmd.run(subcommand, restArgs, flags);
|
|
120
|
-
break;
|
|
121
117
|
default:
|
|
122
118
|
printHelp();
|
|
123
119
|
process.exit(0);
|
|
@@ -145,7 +141,6 @@ Commands:
|
|
|
145
141
|
setup Setup CLI credentials and view integration instructions
|
|
146
142
|
config Manage CLI defaults like org_id and domain
|
|
147
143
|
domain Manage domain configurations
|
|
148
|
-
email Send emails and manage templates
|
|
149
144
|
|
|
150
145
|
Run "myapi <command> --help" for subcommand help.`);
|
|
151
146
|
}
|
package/package.json
CHANGED
package/src/commands/funnel.ts
CHANGED
|
@@ -1,26 +1,76 @@
|
|
|
1
1
|
import { funnel as sdkFunnel } from '@myapihq/sdk';
|
|
2
2
|
import { requireConfig } from '../config.js';
|
|
3
|
-
import { success, error, printTable } from '../output.js';
|
|
3
|
+
import { success, error, printTable, info, printJson } from '../output.js';
|
|
4
4
|
import * as fs from 'fs';
|
|
5
5
|
|
|
6
6
|
export async function list(flags: Record<string, string | boolean>) {
|
|
7
7
|
const config = requireConfig();
|
|
8
|
-
const
|
|
8
|
+
const orgId = (flags.org as string) || config.default_org;
|
|
9
|
+
if (!orgId) error("Missing required arguments.\nUsage: myapi funnel list --org <id>\n(Or set defaults via: myapi config set-org <id>)");
|
|
10
|
+
const funnels = await sdkFunnel.listFunnels(config.api_key, orgId);
|
|
9
11
|
printTable(funnels as unknown as Record<string, unknown>[]);
|
|
10
12
|
}
|
|
11
13
|
|
|
12
14
|
export async function create(flags: Record<string, string | boolean>) {
|
|
13
|
-
if (!flags['org-id'] || !flags.domain) {
|
|
14
|
-
error("Missing --org-id or --domain flags");
|
|
15
|
-
}
|
|
16
15
|
const config = requireConfig();
|
|
17
|
-
const
|
|
16
|
+
const orgId = (flags.org as string) || config.default_org;
|
|
17
|
+
const domain = (flags.domain as string) || config.default_domain;
|
|
18
|
+
|
|
19
|
+
if (!orgId || !domain) {
|
|
20
|
+
error("Missing required arguments.\nUsage: myapi funnel create --org <id> --domain <domain>\n(Or set defaults via: myapi config set-org <id> / set-domain <domain>)");
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
const funnel = await sdkFunnel.createFunnel(config.api_key, orgId, domain);
|
|
18
24
|
success(`Funnel created! ID: ${funnel.id}`);
|
|
19
25
|
}
|
|
20
26
|
|
|
27
|
+
export async function get(id: string, flags: Record<string, string | boolean>) {
|
|
28
|
+
const config = requireConfig();
|
|
29
|
+
const orgId = (flags.org as string) || config.default_org;
|
|
30
|
+
if (!orgId || !id) error("Missing required arguments.\nUsage: myapi funnel get <id> --org <id>\n(Or set defaults via: myapi config set-org <id>)");
|
|
31
|
+
const funnel = await sdkFunnel.getFunnel(config.api_key, orgId, id);
|
|
32
|
+
printJson(funnel);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export async function del(id: string, flags: Record<string, string | boolean>) {
|
|
36
|
+
const config = requireConfig();
|
|
37
|
+
const orgId = (flags.org as string) || config.default_org;
|
|
38
|
+
if (!orgId || !id) error("Missing required arguments.\nUsage: myapi funnel delete <id> --org <id>\n(Or set defaults via: myapi config set-org <id>)");
|
|
39
|
+
await sdkFunnel.deleteFunnel(config.api_key, orgId, id);
|
|
40
|
+
success(`Funnel ${id} deleted`);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export async function preview(id: string, flags: Record<string, string | boolean>) {
|
|
44
|
+
const config = requireConfig();
|
|
45
|
+
const orgId = (flags.org as string) || config.default_org;
|
|
46
|
+
if (!orgId || !id) error("Missing required arguments.\nUsage: myapi funnel preview <id> --org <id>\n(Or set defaults via: myapi config set-org <id>)");
|
|
47
|
+
const p = await sdkFunnel.previewFunnel(config.api_key, orgId, id);
|
|
48
|
+
success(`Preview deployed: ${p.preview_url}`);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export async function publish(id: string, flags: Record<string, string | boolean>) {
|
|
52
|
+
const config = requireConfig();
|
|
53
|
+
const orgId = (flags.org as string) || config.default_org;
|
|
54
|
+
if (!orgId || !id) error("Missing required arguments.\nUsage: myapi funnel publish <id> --org <id>\n(Or set defaults via: myapi config set-org <id>)");
|
|
55
|
+
const p = await sdkFunnel.publishFunnel(config.api_key, orgId, id);
|
|
56
|
+
success(`Publish job started. Status: ${p.status}`);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export async function status(id: string, flags: Record<string, string | boolean>) {
|
|
60
|
+
const config = requireConfig();
|
|
61
|
+
const orgId = (flags.org as string) || config.default_org;
|
|
62
|
+
if (!orgId || !id) error("Missing required arguments.\nUsage: myapi funnel status <id> --org <id>\n(Or set defaults via: myapi config set-org <id>)");
|
|
63
|
+
const s = await sdkFunnel.getPublishStatus(config.api_key, orgId, id);
|
|
64
|
+
info(`Publish Status: ${s.status}`);
|
|
65
|
+
}
|
|
66
|
+
|
|
21
67
|
export async function push(id: string, slug: string, flags: Record<string, string | boolean>) {
|
|
22
|
-
if (!id || !slug) error("Missing id or slug");
|
|
23
68
|
const config = requireConfig();
|
|
69
|
+
const orgId = (flags.org as string) || config.default_org;
|
|
70
|
+
|
|
71
|
+
if (!orgId || !id || !slug) {
|
|
72
|
+
error("Missing required arguments.\nUsage: myapi funnel push <funnel_id> <slug> --org <id> < index.html\n(Or set defaults via: myapi config set-org <id>)");
|
|
73
|
+
}
|
|
24
74
|
|
|
25
75
|
const html = await new Promise<string>((resolve, reject) => {
|
|
26
76
|
let data = '';
|
|
@@ -32,6 +82,47 @@ export async function push(id: string, slug: string, flags: Record<string, strin
|
|
|
32
82
|
|
|
33
83
|
if (!html) error("No HTML provided via stdin");
|
|
34
84
|
|
|
35
|
-
await sdkFunnel.pushPage(config.api_key, id, slug, html);
|
|
85
|
+
await sdkFunnel.pushPage(config.api_key, orgId, id, slug, html);
|
|
36
86
|
success(`Pushed page to ${slug}`);
|
|
37
87
|
}
|
|
88
|
+
|
|
89
|
+
export async function verify(id: string, flags: Record<string, string | boolean>) {
|
|
90
|
+
const config = requireConfig();
|
|
91
|
+
const orgId = (flags.org as string) || config.default_org;
|
|
92
|
+
if (!orgId || !id) error("Missing required arguments.\nUsage: myapi funnel verify <id> --org <id> [--slug <slug>]\n(Or set defaults via: myapi config set-org <id>)");
|
|
93
|
+
const opts: any = {};
|
|
94
|
+
if (flags.slug) opts.slug = flags.slug as string;
|
|
95
|
+
const v = await sdkFunnel.verifyFunnel(config.api_key, orgId, id, opts);
|
|
96
|
+
printJson(v);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export async function run(subcommand: string | undefined, args: string[], flags: Record<string, string | boolean>) {
|
|
100
|
+
if (!subcommand || (flags.help && !subcommand)) {
|
|
101
|
+
info('Usage: myapi funnel <subcommand>\n\nSubcommands:\n list List funnels\n create Create a funnel\n get Get funnel details\n delete Delete a funnel\n preview Deploy to a preview domain\n publish Deploy to production domain\n status Check publish status\n push Push a raw HTML page to a slug\n verify Verify links and webhooks\n\nNote: All funnel commands require the --org <id> flag.');
|
|
102
|
+
return;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
if (flags.help) {
|
|
106
|
+
if (subcommand === 'list') info('Usage: myapi funnel list --org <id>');
|
|
107
|
+
else if (subcommand === 'create') info('Usage: myapi funnel create --org <id> --domain <domain>');
|
|
108
|
+
else if (subcommand === 'get') info('Usage: myapi funnel get <id> --org <id>');
|
|
109
|
+
else if (subcommand === 'delete') info('Usage: myapi funnel delete <id> --org <id>');
|
|
110
|
+
else if (subcommand === 'preview') info('Usage: myapi funnel preview <id> --org <id>');
|
|
111
|
+
else if (subcommand === 'publish') info('Usage: myapi funnel publish <id> --org <id>');
|
|
112
|
+
else if (subcommand === 'status') info('Usage: myapi funnel status <id> --org <id>');
|
|
113
|
+
else if (subcommand === 'push') info('Usage: myapi funnel push <funnel_id> <slug> --org <id> < index.html\n\nPushes HTML content from stdin to the specified funnel.');
|
|
114
|
+
else if (subcommand === 'verify') info('Usage: myapi funnel verify <id> --org <id> [--slug <slug>]\n\nVerifies syntax and structure before publishing.');
|
|
115
|
+
return;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
if (subcommand === 'list') await list(flags);
|
|
119
|
+
else if (subcommand === 'create') await create(flags);
|
|
120
|
+
else if (subcommand === 'get') await get(args[0], flags);
|
|
121
|
+
else if (subcommand === 'delete') await del(args[0], flags);
|
|
122
|
+
else if (subcommand === 'preview') await preview(args[0], flags);
|
|
123
|
+
else if (subcommand === 'publish') await publish(args[0], flags);
|
|
124
|
+
else if (subcommand === 'status') await status(args[0], flags);
|
|
125
|
+
else if (subcommand === 'push') await push(args[0], args[1], flags);
|
|
126
|
+
else if (subcommand === 'verify') await verify(args[0], flags);
|
|
127
|
+
else error(`Unknown subcommand: ${subcommand}. Run "myapi funnel --help" for a list of valid subcommands.`);
|
|
128
|
+
}
|
package/src/index.ts
CHANGED
|
@@ -9,7 +9,6 @@ import * as orgCmd from './commands/org.js';
|
|
|
9
9
|
import * as setupCmd from './commands/setup.js';
|
|
10
10
|
import * as configCmd from './commands/config.js';
|
|
11
11
|
import * as domainCmd from './commands/domain.js';
|
|
12
|
-
import * as emailCmd from './commands/email.js';
|
|
13
12
|
|
|
14
13
|
async function main() {
|
|
15
14
|
const { args, flags } = parseArgs(process.argv.slice(2));
|
|
@@ -63,9 +62,6 @@ async function main() {
|
|
|
63
62
|
case 'domain':
|
|
64
63
|
await domainCmd.run(subcommand, restArgs, flags);
|
|
65
64
|
break;
|
|
66
|
-
case 'email':
|
|
67
|
-
await emailCmd.run(subcommand, restArgs, flags);
|
|
68
|
-
break;
|
|
69
65
|
default:
|
|
70
66
|
printHelp();
|
|
71
67
|
process.exit(0);
|
|
@@ -91,7 +87,6 @@ Commands:
|
|
|
91
87
|
setup Setup CLI credentials and view integration instructions
|
|
92
88
|
config Manage CLI defaults like org_id and domain
|
|
93
89
|
domain Manage domain configurations
|
|
94
|
-
email Send emails and manage templates
|
|
95
90
|
|
|
96
91
|
Run "myapi <command> --help" for subcommand help.`);
|
|
97
92
|
}
|