@fonoster/ctl 0.3.2 → 0.3.6-alpha.10
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/README.md +173 -52
- package/dist/base/delete.js +10 -5
- package/dist/commands/agents/create.js +6 -6
- package/dist/commands/agents/get.js +4 -4
- package/dist/commands/agents/list.js +2 -2
- package/dist/commands/agents/update.js +5 -5
- package/dist/commands/apps/create.d.ts +6 -0
- package/dist/commands/apps/create.js +186 -0
- package/dist/commands/apps/delete.d.ts +9 -0
- package/dist/commands/apps/delete.js +36 -0
- package/dist/commands/apps/list.d.ts +10 -0
- package/dist/commands/apps/list.js +89 -0
- package/dist/commands/apps/update.d.ts +9 -0
- package/dist/commands/apps/update.js +205 -0
- package/dist/commands/auth/login.js +8 -8
- package/dist/commands/auth/logout.js +5 -5
- package/dist/commands/bug.js +2 -5
- package/dist/commands/domains/create.js +6 -6
- package/dist/commands/domains/get.js +4 -4
- package/dist/commands/domains/list.js +2 -2
- package/dist/commands/domains/update.js +5 -5
- package/dist/commands/feedback.js +2 -5
- package/dist/commands/numbers/create.js +6 -6
- package/dist/commands/numbers/get.js +4 -4
- package/dist/commands/numbers/list.js +2 -2
- package/dist/commands/numbers/update.js +20 -9
- package/dist/commands/projects/create.js +6 -6
- package/dist/commands/projects/get.js +4 -4
- package/dist/commands/projects/list.js +2 -2
- package/dist/commands/projects/renew.js +5 -5
- package/dist/commands/projects/use.js +5 -5
- package/dist/commands/providers/create.js +7 -7
- package/dist/commands/providers/get.js +4 -4
- package/dist/commands/providers/list.js +2 -2
- package/dist/commands/providers/update.js +5 -5
- package/dist/commands/secrets/create.d.ts +14 -0
- package/dist/commands/secrets/create.js +64 -0
- package/dist/commands/secrets/delete.d.ts +10 -0
- package/dist/commands/secrets/delete.js +57 -0
- package/dist/commands/secrets/list.d.ts +10 -0
- package/dist/commands/secrets/list.js +71 -0
- package/dist/data/voices.d.ts +1 -0
- package/dist/data/voices.js +319 -0
- package/dist/decorators/project_guard.d.ts +9 -0
- package/dist/decorators/project_guard.js +26 -0
- package/dist/help.d.ts +3 -1
- package/dist/help.js +21 -16
- package/oclif.manifest.json +1 -1
- package/package.json +24 -43
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
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;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
/*
|
|
10
|
+
* Copyright (C) 2021 by Fonoster Inc (https://fonoster.com)
|
|
11
|
+
* http://github.com/fonoster/plugin-funcs
|
|
12
|
+
*
|
|
13
|
+
* This file is part of Fonoster
|
|
14
|
+
*
|
|
15
|
+
* Licensed under the MIT License (the "License");
|
|
16
|
+
* you may not use this file except in compliance with
|
|
17
|
+
* the License. You may obtain a copy of the License at
|
|
18
|
+
*
|
|
19
|
+
* https://opensource.org/licenses/MIT
|
|
20
|
+
*
|
|
21
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
22
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
23
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
24
|
+
* See the License for the specific language governing permissions and
|
|
25
|
+
* limitations under the License.
|
|
26
|
+
*/
|
|
27
|
+
require("../../config");
|
|
28
|
+
const command_1 = require("@oclif/command");
|
|
29
|
+
const core_1 = require("@oclif/core");
|
|
30
|
+
const config_1 = require("../../config");
|
|
31
|
+
const project_guard_1 = require("../../decorators/project_guard");
|
|
32
|
+
const errors_1 = require("@oclif/errors");
|
|
33
|
+
const Secrets = require("@fonoster/secrets");
|
|
34
|
+
class DeleteCommand extends command_1.Command {
|
|
35
|
+
async run() {
|
|
36
|
+
const { args } = this.parse(DeleteCommand);
|
|
37
|
+
const secretsManager = new Secrets((0, config_1.getProjectConfig)());
|
|
38
|
+
if (!args.name)
|
|
39
|
+
throw new errors_1.CLIError("You must specify a secret name");
|
|
40
|
+
try {
|
|
41
|
+
core_1.CliUx.ux.action.start("Removing the secret...");
|
|
42
|
+
await secretsManager.deleteSecret(args.name);
|
|
43
|
+
await core_1.CliUx.ux.wait(1000);
|
|
44
|
+
core_1.CliUx.ux.action.stop("Done");
|
|
45
|
+
}
|
|
46
|
+
catch (e) {
|
|
47
|
+
console.error("Unable to remove!");
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
DeleteCommand.description = "remove Fonoster secret";
|
|
52
|
+
DeleteCommand.aliases = ["secrets:del", "secrets:rm"];
|
|
53
|
+
DeleteCommand.args = [{ name: "name" }];
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, project_guard_1.ProjectGuard)()
|
|
56
|
+
], DeleteCommand.prototype, "run", null);
|
|
57
|
+
exports.default = DeleteCommand;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import "../../config";
|
|
2
|
+
import { Command } from "@oclif/command";
|
|
3
|
+
export default class ListCommand extends Command {
|
|
4
|
+
static description: string;
|
|
5
|
+
static aliases: string[];
|
|
6
|
+
static flags: {
|
|
7
|
+
size: import("@oclif/parser/lib/flags").IOptionFlag<number>;
|
|
8
|
+
};
|
|
9
|
+
run(): Promise<void>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
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;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
/*
|
|
10
|
+
* Copyright (C) 2021 by Fonoster Inc (https://fonoster.com)
|
|
11
|
+
* http://github.com/fonoster/plugin-funcs
|
|
12
|
+
*
|
|
13
|
+
* This file is part of Fonoster
|
|
14
|
+
*
|
|
15
|
+
* Licensed under the MIT License (the "License");
|
|
16
|
+
* you may not use this file except in compliance with
|
|
17
|
+
* the License. You may obtain a copy of the License at
|
|
18
|
+
*
|
|
19
|
+
* https://opensource.org/licenses/MIT
|
|
20
|
+
*
|
|
21
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
22
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
23
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
24
|
+
* See the License for the specific language governing permissions and
|
|
25
|
+
* limitations under the License.
|
|
26
|
+
*/
|
|
27
|
+
require("../../config");
|
|
28
|
+
const command_1 = require("@oclif/command");
|
|
29
|
+
const errors_1 = require("@oclif/errors");
|
|
30
|
+
const project_guard_1 = require("../../decorators/project_guard");
|
|
31
|
+
const config_1 = require("../../config");
|
|
32
|
+
// Using import will cause: Error: easy_table_1.default is not a constructor
|
|
33
|
+
const Table = require("easy-table");
|
|
34
|
+
const Secrets = require("@fonoster/secrets");
|
|
35
|
+
class ListCommand extends command_1.Command {
|
|
36
|
+
async run() {
|
|
37
|
+
const { flags } = this.parse(ListCommand);
|
|
38
|
+
const secretsManager = new Secrets((0, config_1.getProjectConfig)());
|
|
39
|
+
try {
|
|
40
|
+
const pageSize = flags.size;
|
|
41
|
+
let pageToken = "1";
|
|
42
|
+
const { secrets, nextPageToken } = await secretsManager.listSecrets({
|
|
43
|
+
pageSize,
|
|
44
|
+
pageToken
|
|
45
|
+
});
|
|
46
|
+
pageToken = nextPageToken;
|
|
47
|
+
const table = new Table();
|
|
48
|
+
secrets.forEach((secret) => {
|
|
49
|
+
table.cell("Name", secret.name);
|
|
50
|
+
table.newRow();
|
|
51
|
+
});
|
|
52
|
+
console.log(secrets.length ? table.toString() : "You haven’t created a Secret yet.");
|
|
53
|
+
}
|
|
54
|
+
catch (e) {
|
|
55
|
+
throw new errors_1.CLIError(e.message);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
ListCommand.description = "list of the secrets you have access to";
|
|
60
|
+
ListCommand.aliases = ["secrets:ls"];
|
|
61
|
+
ListCommand.flags = {
|
|
62
|
+
size: command_1.flags.integer({
|
|
63
|
+
char: "s",
|
|
64
|
+
default: 25,
|
|
65
|
+
description: "secrets of result per page"
|
|
66
|
+
})
|
|
67
|
+
};
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, project_guard_1.ProjectGuard)()
|
|
70
|
+
], ListCommand.prototype, "run", null);
|
|
71
|
+
exports.default = ListCommand;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const voices: string[];
|
|
@@ -0,0 +1,319 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.voices = void 0;
|
|
4
|
+
exports.voices = [
|
|
5
|
+
"ar-XA-Wavenet-A",
|
|
6
|
+
"ar-XA-Wavenet-B",
|
|
7
|
+
"ar-XA-Wavenet-C",
|
|
8
|
+
"ar-XA-Wavenet-D",
|
|
9
|
+
"bn-IN-Wavenet-A",
|
|
10
|
+
"bn-IN-Wavenet-B",
|
|
11
|
+
"en-GB-Wavenet-A",
|
|
12
|
+
"en-GB-Wavenet-B",
|
|
13
|
+
"en-GB-Wavenet-C",
|
|
14
|
+
"en-GB-Wavenet-D",
|
|
15
|
+
"en-GB-Wavenet-F",
|
|
16
|
+
"fr-CA-Wavenet-A",
|
|
17
|
+
"fr-CA-Wavenet-B",
|
|
18
|
+
"fr-CA-Wavenet-C",
|
|
19
|
+
"fr-CA-Wavenet-D",
|
|
20
|
+
"en-US-Wavenet-G",
|
|
21
|
+
"en-US-Wavenet-H",
|
|
22
|
+
"en-US-Wavenet-I",
|
|
23
|
+
"en-US-Wavenet-J",
|
|
24
|
+
"en-US-Wavenet-A",
|
|
25
|
+
"en-US-Wavenet-B",
|
|
26
|
+
"en-US-Wavenet-C",
|
|
27
|
+
"en-US-Wavenet-D",
|
|
28
|
+
"en-US-Wavenet-E",
|
|
29
|
+
"en-US-Wavenet-F",
|
|
30
|
+
"es-ES-Wavenet-C",
|
|
31
|
+
"es-ES-Wavenet-D",
|
|
32
|
+
"es-ES-Wavenet-B",
|
|
33
|
+
"fi-FI-Wavenet-A",
|
|
34
|
+
"gu-IN-Wavenet-A",
|
|
35
|
+
"gu-IN-Wavenet-B",
|
|
36
|
+
"ja-JP-Wavenet-B",
|
|
37
|
+
"ja-JP-Wavenet-C",
|
|
38
|
+
"ja-JP-Wavenet-D",
|
|
39
|
+
"ja-JP-Wavenet-A",
|
|
40
|
+
"kn-IN-Wavenet-A",
|
|
41
|
+
"kn-IN-Wavenet-B",
|
|
42
|
+
"ml-IN-Wavenet-A",
|
|
43
|
+
"ml-IN-Wavenet-B",
|
|
44
|
+
"sv-SE-Wavenet-A",
|
|
45
|
+
"sv-SE-Wavenet-B",
|
|
46
|
+
"sv-SE-Wavenet-C",
|
|
47
|
+
"sv-SE-Wavenet-D",
|
|
48
|
+
"sv-SE-Wavenet-E",
|
|
49
|
+
"ta-IN-Wavenet-A",
|
|
50
|
+
"ta-IN-Wavenet-B",
|
|
51
|
+
"tr-TR-Wavenet-B",
|
|
52
|
+
"tr-TR-Wavenet-C",
|
|
53
|
+
"tr-TR-Wavenet-D",
|
|
54
|
+
"tr-TR-Wavenet-E",
|
|
55
|
+
"tr-TR-Wavenet-A",
|
|
56
|
+
"ms-MY-Wavenet-A",
|
|
57
|
+
"ms-MY-Wavenet-B",
|
|
58
|
+
"ms-MY-Wavenet-C",
|
|
59
|
+
"ms-MY-Wavenet-D",
|
|
60
|
+
"pa-IN-Wavenet-A",
|
|
61
|
+
"pa-IN-Wavenet-B",
|
|
62
|
+
"pa-IN-Wavenet-C",
|
|
63
|
+
"pa-IN-Wavenet-D",
|
|
64
|
+
"cs-CZ-Wavenet-A",
|
|
65
|
+
"de-DE-Wavenet-F",
|
|
66
|
+
"de-DE-Wavenet-A",
|
|
67
|
+
"de-DE-Wavenet-B",
|
|
68
|
+
"de-DE-Wavenet-C",
|
|
69
|
+
"de-DE-Wavenet-D",
|
|
70
|
+
"de-DE-Wavenet-E",
|
|
71
|
+
"en-AU-Wavenet-A",
|
|
72
|
+
"en-AU-Wavenet-B",
|
|
73
|
+
"en-AU-Wavenet-C",
|
|
74
|
+
"en-AU-Wavenet-D",
|
|
75
|
+
"en-IN-Wavenet-D",
|
|
76
|
+
"en-IN-Wavenet-A",
|
|
77
|
+
"en-IN-Wavenet-B",
|
|
78
|
+
"en-IN-Wavenet-C",
|
|
79
|
+
"es-US-Wavenet-A",
|
|
80
|
+
"es-US-Wavenet-B",
|
|
81
|
+
"es-US-Wavenet-C",
|
|
82
|
+
"fr-FR-Wavenet-E",
|
|
83
|
+
"fr-FR-Wavenet-A",
|
|
84
|
+
"fr-FR-Wavenet-B",
|
|
85
|
+
"fr-FR-Wavenet-C",
|
|
86
|
+
"fr-FR-Wavenet-D",
|
|
87
|
+
"hi-IN-Wavenet-D",
|
|
88
|
+
"hi-IN-Wavenet-A",
|
|
89
|
+
"hi-IN-Wavenet-B",
|
|
90
|
+
"hi-IN-Wavenet-C",
|
|
91
|
+
"id-ID-Wavenet-D",
|
|
92
|
+
"id-ID-Wavenet-A",
|
|
93
|
+
"id-ID-Wavenet-B",
|
|
94
|
+
"id-ID-Wavenet-C",
|
|
95
|
+
"it-IT-Wavenet-A",
|
|
96
|
+
"it-IT-Wavenet-B",
|
|
97
|
+
"it-IT-Wavenet-C",
|
|
98
|
+
"it-IT-Wavenet-D",
|
|
99
|
+
"ko-KR-Wavenet-A",
|
|
100
|
+
"ko-KR-Wavenet-B",
|
|
101
|
+
"ko-KR-Wavenet-C",
|
|
102
|
+
"ko-KR-Wavenet-D",
|
|
103
|
+
"ru-RU-Wavenet-E",
|
|
104
|
+
"ru-RU-Wavenet-A",
|
|
105
|
+
"ru-RU-Wavenet-B",
|
|
106
|
+
"ru-RU-Wavenet-C",
|
|
107
|
+
"ru-RU-Wavenet-D",
|
|
108
|
+
"uk-UA-Wavenet-A",
|
|
109
|
+
"cmn-CN-Wavenet-A",
|
|
110
|
+
"cmn-CN-Wavenet-B",
|
|
111
|
+
"cmn-CN-Wavenet-C",
|
|
112
|
+
"cmn-CN-Wavenet-D",
|
|
113
|
+
"cmn-TW-Wavenet-A",
|
|
114
|
+
"cmn-TW-Wavenet-B",
|
|
115
|
+
"cmn-TW-Wavenet-C",
|
|
116
|
+
"da-DK-Wavenet-C",
|
|
117
|
+
"da-DK-Wavenet-D",
|
|
118
|
+
"da-DK-Wavenet-E",
|
|
119
|
+
"da-DK-Wavenet-A",
|
|
120
|
+
"el-GR-Wavenet-A",
|
|
121
|
+
"fil-PH-Wavenet-A",
|
|
122
|
+
"fil-PH-Wavenet-B",
|
|
123
|
+
"fil-PH-Wavenet-C",
|
|
124
|
+
"fil-PH-Wavenet-D",
|
|
125
|
+
"hu-HU-Wavenet-A",
|
|
126
|
+
"nb-NO-Wavenet-A",
|
|
127
|
+
"nb-NO-Wavenet-B",
|
|
128
|
+
"nb-NO-Wavenet-C",
|
|
129
|
+
"nb-NO-Wavenet-D",
|
|
130
|
+
"nb-no-Wavenet-E",
|
|
131
|
+
"nl-BE-Wavenet-A",
|
|
132
|
+
"nl-BE-Wavenet-B",
|
|
133
|
+
"nl-NL-Wavenet-B",
|
|
134
|
+
"nl-NL-Wavenet-C",
|
|
135
|
+
"nl-NL-Wavenet-D",
|
|
136
|
+
"nl-NL-Wavenet-A",
|
|
137
|
+
"nl-NL-Wavenet-E",
|
|
138
|
+
"pt-PT-Wavenet-A",
|
|
139
|
+
"pt-PT-Wavenet-B",
|
|
140
|
+
"pt-PT-Wavenet-C",
|
|
141
|
+
"pt-PT-Wavenet-D",
|
|
142
|
+
"sk-SK-Wavenet-A",
|
|
143
|
+
"vi-VN-Wavenet-A",
|
|
144
|
+
"vi-VN-Wavenet-B",
|
|
145
|
+
"vi-VN-Wavenet-C",
|
|
146
|
+
"vi-VN-Wavenet-D",
|
|
147
|
+
"pl-PL-Wavenet-A",
|
|
148
|
+
"pl-PL-Wavenet-B",
|
|
149
|
+
"pl-PL-Wavenet-C",
|
|
150
|
+
"pl-PL-Wavenet-E",
|
|
151
|
+
"pl-PL-Wavenet-D",
|
|
152
|
+
"pt-BR-Wavenet-A",
|
|
153
|
+
"pt-BR-Wavenet-B",
|
|
154
|
+
"ro-RO-Wavenet-A",
|
|
155
|
+
"da-DK-Standard-A",
|
|
156
|
+
"da-DK-Standard-C",
|
|
157
|
+
"da-DK-Standard-D",
|
|
158
|
+
"da-DK-Standard-E",
|
|
159
|
+
"fi-FI-Standard-A",
|
|
160
|
+
"is-is-Standard-A",
|
|
161
|
+
"nb-NO-Standard-A",
|
|
162
|
+
"nb-NO-Standard-B",
|
|
163
|
+
"nb-NO-Standard-C",
|
|
164
|
+
"nb-NO-Standard-D",
|
|
165
|
+
"nb-no-Standard-E",
|
|
166
|
+
"pt-PT-Standard-A",
|
|
167
|
+
"pt-PT-Standard-B",
|
|
168
|
+
"pt-PT-Standard-C",
|
|
169
|
+
"pt-PT-Standard-D",
|
|
170
|
+
"sv-SE-Standard-B",
|
|
171
|
+
"sv-SE-Standard-C",
|
|
172
|
+
"sv-SE-Standard-D",
|
|
173
|
+
"sv-SE-Standard-E",
|
|
174
|
+
"sv-SE-Standard-A",
|
|
175
|
+
"fr-FR-Standard-A",
|
|
176
|
+
"fr-FR-Standard-B",
|
|
177
|
+
"fr-FR-Standard-C",
|
|
178
|
+
"fr-FR-Standard-D",
|
|
179
|
+
"de-DE-Standard-E",
|
|
180
|
+
"de-DE-Standard-A",
|
|
181
|
+
"de-DE-Standard-B",
|
|
182
|
+
"de-DE-Standard-C",
|
|
183
|
+
"de-DE-Standard-D",
|
|
184
|
+
"de-DE-Standard-F",
|
|
185
|
+
"fr-CA-Standard-A",
|
|
186
|
+
"fr-CA-Standard-B",
|
|
187
|
+
"fr-CA-Standard-C",
|
|
188
|
+
"fr-CA-Standard-D",
|
|
189
|
+
"it-IT-Standard-B",
|
|
190
|
+
"it-IT-Standard-C",
|
|
191
|
+
"it-IT-Standard-D",
|
|
192
|
+
"en-AU-Standard-A",
|
|
193
|
+
"en-AU-Standard-B",
|
|
194
|
+
"en-AU-Standard-C",
|
|
195
|
+
"en-AU-Standard-D",
|
|
196
|
+
"en-GB-Standard-A",
|
|
197
|
+
"en-GB-Standard-B",
|
|
198
|
+
"en-GB-Standard-C",
|
|
199
|
+
"en-GB-Standard-D",
|
|
200
|
+
"en-GB-Standard-F",
|
|
201
|
+
"th-TH-Standard-A",
|
|
202
|
+
"bn-IN-Standard-A",
|
|
203
|
+
"bn-IN-Standard-B",
|
|
204
|
+
"en-IN-Standard-D",
|
|
205
|
+
"en-IN-Standard-A",
|
|
206
|
+
"en-IN-Standard-B",
|
|
207
|
+
"en-IN-Standard-C",
|
|
208
|
+
"gu-IN-Standard-A",
|
|
209
|
+
"gu-IN-Standard-B",
|
|
210
|
+
"hi-IN-Standard-D",
|
|
211
|
+
"hi-IN-Standard-A",
|
|
212
|
+
"hi-IN-Standard-B",
|
|
213
|
+
"hi-IN-Standard-C",
|
|
214
|
+
"kn-IN-Standard-A",
|
|
215
|
+
"kn-IN-Standard-B",
|
|
216
|
+
"ml-IN-Standard-A",
|
|
217
|
+
"ml-IN-Standard-B",
|
|
218
|
+
"ta-IN-Standard-A",
|
|
219
|
+
"ta-IN-Standard-B",
|
|
220
|
+
"te-IN-Standard-A",
|
|
221
|
+
"te-IN-Standard-B",
|
|
222
|
+
"pa-IN-Standard-A",
|
|
223
|
+
"pa-IN-Standard-B",
|
|
224
|
+
"pa-IN-Standard-C",
|
|
225
|
+
"pa-IN-Standard-D",
|
|
226
|
+
"af-ZA-Standard-A",
|
|
227
|
+
"bg-bg-Standard-A",
|
|
228
|
+
"hu-HU-Standard-A",
|
|
229
|
+
"lv-lv-Standard-A",
|
|
230
|
+
"ro-RO-Standard-A",
|
|
231
|
+
"sk-SK-Standard-A",
|
|
232
|
+
"sr-rs-Standard-A",
|
|
233
|
+
"uk-UA-Standard-A",
|
|
234
|
+
"pl-PL-Standard-A",
|
|
235
|
+
"pl-PL-Standard-B",
|
|
236
|
+
"pl-PL-Standard-C",
|
|
237
|
+
"pl-PL-Standard-E",
|
|
238
|
+
"pl-PL-Standard-D",
|
|
239
|
+
"tr-TR-Standard-B",
|
|
240
|
+
"tr-TR-Standard-C",
|
|
241
|
+
"tr-TR-Standard-D",
|
|
242
|
+
"tr-TR-Standard-E",
|
|
243
|
+
"tr-TR-Standard-A",
|
|
244
|
+
"cs-CZ-Standard-A",
|
|
245
|
+
"el-GR-Standard-A",
|
|
246
|
+
"pt-BR-Standard-A",
|
|
247
|
+
"pt-BR-Standard-B",
|
|
248
|
+
"es-US-Standard-A",
|
|
249
|
+
"es-US-Standard-B",
|
|
250
|
+
"es-US-Standard-C",
|
|
251
|
+
"ms-MY-Standard-A",
|
|
252
|
+
"ms-MY-Standard-B",
|
|
253
|
+
"ms-MY-Standard-C",
|
|
254
|
+
"ms-MY-Standard-D",
|
|
255
|
+
"id-ID-Standard-A",
|
|
256
|
+
"id-ID-Standard-B",
|
|
257
|
+
"id-ID-Standard-C",
|
|
258
|
+
"id-ID-Standard-D",
|
|
259
|
+
"nl-BE-Standard-A",
|
|
260
|
+
"nl-BE-Standard-B",
|
|
261
|
+
"nl-NL-Standard-B",
|
|
262
|
+
"nl-NL-Standard-C",
|
|
263
|
+
"nl-NL-Standard-D",
|
|
264
|
+
"nl-NL-Standard-A",
|
|
265
|
+
"nl-NL-Standard-E",
|
|
266
|
+
"fil-PH-Standard-A",
|
|
267
|
+
"fil-PH-Standard-B",
|
|
268
|
+
"fil-PH-Standard-C",
|
|
269
|
+
"fil-PH-Standard-D",
|
|
270
|
+
"yue-HK-Standard-A",
|
|
271
|
+
"yue-HK-Standard-B",
|
|
272
|
+
"yue-HK-Standard-C",
|
|
273
|
+
"yue-HK-Standard-D",
|
|
274
|
+
"cmn-CN-Standard-C",
|
|
275
|
+
"cmn-CN-Standard-B",
|
|
276
|
+
"cmn-CN-Standard-A",
|
|
277
|
+
"cmn-CN-Standard-D",
|
|
278
|
+
"ja-JP-Standard-A",
|
|
279
|
+
"ja-JP-Standard-B",
|
|
280
|
+
"ja-JP-Standard-C",
|
|
281
|
+
"ja-JP-Standard-D",
|
|
282
|
+
"cmn-TW-Standard-A",
|
|
283
|
+
"cmn-TW-Standard-B",
|
|
284
|
+
"cmn-TW-Standard-C",
|
|
285
|
+
"ko-KR-Standard-B",
|
|
286
|
+
"ko-KR-Standard-C",
|
|
287
|
+
"ko-KR-Standard-D",
|
|
288
|
+
"ko-KR-Standard-A",
|
|
289
|
+
"vi-VN-Standard-A",
|
|
290
|
+
"vi-VN-Standard-B",
|
|
291
|
+
"vi-VN-Standard-C",
|
|
292
|
+
"vi-VN-Standard-D",
|
|
293
|
+
"ar-XA-Standard-A",
|
|
294
|
+
"ar-XA-Standard-B",
|
|
295
|
+
"ar-XA-Standard-C",
|
|
296
|
+
"ar-XA-Standard-D",
|
|
297
|
+
"fr-FR-Standard-E",
|
|
298
|
+
"it-IT-Standard-A",
|
|
299
|
+
"ru-RU-Standard-E",
|
|
300
|
+
"ru-RU-Standard-A",
|
|
301
|
+
"ru-RU-Standard-B",
|
|
302
|
+
"ru-RU-Standard-C",
|
|
303
|
+
"ru-RU-Standard-D",
|
|
304
|
+
"en-US-Standard-A",
|
|
305
|
+
"en-US-Standard-B",
|
|
306
|
+
"en-US-Standard-C",
|
|
307
|
+
"en-US-Standard-D",
|
|
308
|
+
"en-US-Standard-E",
|
|
309
|
+
"en-US-Standard-F",
|
|
310
|
+
"en-US-Standard-G",
|
|
311
|
+
"en-US-Standard-H",
|
|
312
|
+
"en-US-Standard-I",
|
|
313
|
+
"en-US-Standard-J",
|
|
314
|
+
"ca-es-Standard-A",
|
|
315
|
+
"es-ES-Standard-C",
|
|
316
|
+
"es-ES-Standard-D",
|
|
317
|
+
"es-ES-Standard-B",
|
|
318
|
+
"es-ES-Standard-A"
|
|
319
|
+
];
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ProjectGuard = void 0;
|
|
4
|
+
const errors_1 = require("@oclif/errors");
|
|
5
|
+
const config_1 = require("../config");
|
|
6
|
+
/**
|
|
7
|
+
* Project Guard
|
|
8
|
+
*
|
|
9
|
+
* @description Guardian that is responsible for validating that a default project exists.
|
|
10
|
+
*
|
|
11
|
+
* @return {*} {MethodDecorator}
|
|
12
|
+
* @author Fonoster
|
|
13
|
+
*/
|
|
14
|
+
const ProjectGuard = function () {
|
|
15
|
+
return function (_target, _propertyKey, descriptor) {
|
|
16
|
+
const method = descriptor.value;
|
|
17
|
+
descriptor.value = async function (...args) {
|
|
18
|
+
if (!(0, config_1.hasProjectConfig)()) {
|
|
19
|
+
throw new errors_1.CLIError("you must set a default project before using this command");
|
|
20
|
+
}
|
|
21
|
+
return method.apply(this, args);
|
|
22
|
+
};
|
|
23
|
+
return descriptor;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
exports.ProjectGuard = ProjectGuard;
|
package/dist/help.d.ts
CHANGED
package/dist/help.js
CHANGED
|
@@ -3,22 +3,27 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const plugin_help_1 = require("@oclif/plugin-help");
|
|
4
4
|
const figlet = require("figlet");
|
|
5
5
|
class MyHelpClass extends plugin_help_1.Help {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
|
|
6
|
+
showRootHelp() {
|
|
7
|
+
this.showLogo();
|
|
8
|
+
console.log(this.formatRoot());
|
|
9
|
+
console.log("");
|
|
10
|
+
console.log(this.formatCommands(this.customCommands));
|
|
11
|
+
console.log("");
|
|
12
|
+
}
|
|
13
|
+
showLogo() {
|
|
14
|
+
console.log("\x1b[32m");
|
|
15
|
+
console.log(figlet.textSync("Fonoster", {
|
|
16
|
+
horizontalLayout: "default",
|
|
17
|
+
verticalLayout: "default",
|
|
18
|
+
width: 60,
|
|
19
|
+
whitespaceBreak: true
|
|
20
|
+
}));
|
|
21
|
+
console.log("\x1b[0m");
|
|
22
|
+
}
|
|
23
|
+
get customCommands() {
|
|
24
|
+
return this.sortedCommands
|
|
25
|
+
.filter((c) => c.id)
|
|
26
|
+
.sort((a, b) => (a.id.includes(":") ? 1 : b.id.includes(":") ? -1 : 0));
|
|
22
27
|
}
|
|
23
28
|
}
|
|
24
29
|
exports.default = MyHelpClass;
|
package/oclif.manifest.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"0.3.
|
|
1
|
+
{"version":"0.3.6-alpha.10","commands":{"bug":{"id":"bug","description":"start a bug report 🐞\n ...\n Opens github issues with a predefine bug template\n ","pluginName":"@fonoster/ctl","pluginType":"core","aliases":[],"flags":{},"args":[]},"feedback":{"id":"feedback","description":"let us know how we're doing\n ...\n Help us improve by providing some feedback\n ","pluginName":"@fonoster/ctl","pluginType":"core","aliases":[],"flags":{},"args":[]},"agents:create":{"id":"agents:create","description":"create a new Fonoster Agent\n ...\n Create a new Fonoster Agent\n ","pluginName":"@fonoster/ctl","pluginType":"core","aliases":[],"flags":{},"args":[]},"agents:delete":{"id":"agents:delete","description":"delete a Fonoster Agent","pluginName":"@fonoster/ctl","pluginType":"core","aliases":["agents:del","agents:rm"],"flags":{},"args":[{"name":"ref"}]},"agents:get":{"id":"agents:get","description":"get a Fonoster Agent","pluginName":"@fonoster/ctl","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"ref"}]},"agents:list":{"id":"agents:list","description":"list all Fonoster Agents you have access to\n ...\n List all Fonoster Agents you have access to\n ","pluginName":"@fonoster/ctl","pluginType":"core","aliases":["agents:ls"],"flags":{"size":{"name":"size","type":"option","char":"s","description":"agent of result per page","default":25}},"args":[]},"agents:update":{"id":"agents:update","description":"update a Fonoster Agent\n ...\n Update a Fonoster Agent\n ","pluginName":"@fonoster/ctl","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"ref"}]},"apps:create":{"id":"apps:create","description":"create a new Fonoster App\n ...\n Create a new Fonoster App\n ","pluginName":"@fonoster/ctl","pluginType":"core","aliases":[],"flags":{},"args":[]},"apps:delete":{"id":"apps:delete","description":"delete a Fonoster Application","pluginName":"@fonoster/ctl","pluginType":"core","aliases":["apps:del","apps:rm"],"flags":{},"args":[{"name":"ref"}]},"apps:list":{"id":"apps:list","description":"list all Fonoster Apps you have access to\n ...\n List all Fonoster Apps you have access to\n ","pluginName":"@fonoster/ctl","pluginType":"core","aliases":["apps:ls"],"flags":{"size":{"name":"size","type":"option","char":"s","description":"number of result per page","default":25}},"args":[]},"apps:update":{"id":"apps:update","description":"update a new Fonoster App\n ...\n Update a new Fonoster App\n ","pluginName":"@fonoster/ctl","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"ref"}]},"auth:login":{"id":"auth:login","description":"log in to a Fonoster deployment","pluginName":"@fonoster/ctl","pluginType":"core","aliases":[],"flags":{},"args":[]},"auth:logout":{"id":"auth:logout","description":"log out from a fonoster deployment","pluginName":"@fonoster/ctl","pluginType":"core","aliases":[],"flags":{},"args":[]},"domains:create":{"id":"domains:create","description":"create a new Fonoster Domain\n ...\n Create a new Fonoster Domain\n ","pluginName":"@fonoster/ctl","pluginType":"core","aliases":[],"flags":{},"args":[]},"domains:delete":{"id":"domains:delete","description":"delete a Fonoster Domain","pluginName":"@fonoster/ctl","pluginType":"core","aliases":["domains:del","domains:rm"],"flags":{},"args":[{"name":"ref"}]},"domains:get":{"id":"domains:get","description":"get a Fonoster Domain","pluginName":"@fonoster/ctl","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"ref"}]},"domains:list":{"id":"domains:list","description":"list all Fonoster Domains you have access to\n ...\n List all Fonoster Domains you have access to\n ","pluginName":"@fonoster/ctl","pluginType":"core","aliases":["domains:ls"],"flags":{"size":{"name":"size","type":"option","char":"s","description":"number of result per page","default":25}},"args":[]},"domains:update":{"id":"domains:update","description":"update a Fonoster Domain\n ...\n Update a Fonoster Domain\n ","pluginName":"@fonoster/ctl","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"ref"}]},"numbers:create":{"id":"numbers:create","description":"create a new Fonoster Number\n ...\n Create a new Fonoster Number\n ","pluginName":"@fonoster/ctl","pluginType":"core","aliases":[],"flags":{},"args":[]},"numbers:delete":{"id":"numbers:delete","description":"delete a Fonoster Number","pluginName":"@fonoster/ctl","pluginType":"core","aliases":["numbers:del","numbers:rm"],"flags":{},"args":[{"name":"ref"}]},"numbers:get":{"id":"numbers:get","description":"get a Fonoster Number","pluginName":"@fonoster/ctl","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"ref"}]},"numbers:list":{"id":"numbers:list","description":"list all Fonoster Numbers you have access to\n ...\n List all Fonoster Numbers you have access to\n ","pluginName":"@fonoster/ctl","pluginType":"core","aliases":["numbers:ls"],"flags":{"size":{"name":"size","type":"option","char":"s","description":"number of result per page","default":25}},"args":[]},"numbers:update":{"id":"numbers:update","description":"update a Fonoster Number\n ...\n Update a Fonoster Number\n ","pluginName":"@fonoster/ctl","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"ref"}]},"projects:create":{"id":"projects:create","description":"create a new Fonoster Project\n ...\n Create a new Fonoster Project\n ","pluginName":"@fonoster/ctl","pluginType":"core","aliases":[],"flags":{},"args":[]},"projects:delete":{"id":"projects:delete","description":"delete a Fonoster Project","pluginName":"@fonoster/ctl","pluginType":"core","aliases":["projects:del","projects:rm"],"flags":{},"args":[{"name":"ref"}]},"projects:get":{"id":"projects:get","description":"get a Fonoster Project","pluginName":"@fonoster/ctl","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"ref"}]},"projects:list":{"id":"projects:list","description":"list all Fonoster Projects you have access to\n ...\n List all Fonoster Projects you have access to\n ","pluginName":"@fonoster/ctl","pluginType":"core","aliases":["projects:ls"],"flags":{},"args":[]},"projects:renew":{"id":"projects:renew","description":"renew the credentials of a Fonoster Project\n ...\n Renew the credentials of a Fonoster Project\n ","pluginName":"@fonoster/ctl","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"ref"}]},"projects:use":{"id":"projects:use","description":"set a default Fonoster Project\n ...\n Set a default Fonoster Project\n ","pluginName":"@fonoster/ctl","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"ref"}]},"providers:create":{"id":"providers:create","description":"create a new Fonoster Provider (trunk)\n ...\n Create a new Fonoster Provider\n ","pluginName":"@fonoster/ctl","pluginType":"core","aliases":[],"flags":{},"args":[]},"providers:delete":{"id":"providers:delete","description":"delete a Fonoster Provider","pluginName":"@fonoster/ctl","pluginType":"core","aliases":["providers:del","providers:rm"],"flags":{},"args":[{"name":"ref"}]},"providers:get":{"id":"providers:get","description":"get a Fonoster Provider","pluginName":"@fonoster/ctl","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"ref"}]},"providers:list":{"id":"providers:list","description":"list all Fonoster Providers you have access to\n ...\n List all Fonoster Providers you have access to\n ","pluginName":"@fonoster/ctl","pluginType":"core","aliases":["providers:ls"],"flags":{"size":{"name":"size","type":"option","char":"s","description":"provider of result per page","default":25}},"args":[]},"providers:update":{"id":"providers:update","description":"update a Fonoster Provider\n ...\n Update a Fonoster Provider\n ","pluginName":"@fonoster/ctl","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"ref"}]},"secrets:create":{"id":"secrets:create","description":"create a Fonoster secret.","pluginName":"@fonoster/ctl","pluginType":"core","aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"from-literal":{"name":"from-literal","type":"option","char":"l","description":"pass from literal"},"from-stdin":{"name":"from-stdin","type":"boolean","char":"s","description":"pass from stdin","allowNo":false}},"args":[{"name":"name"}]},"secrets:delete":{"id":"secrets:delete","description":"remove Fonoster secret","pluginName":"@fonoster/ctl","pluginType":"core","aliases":["secrets:del","secrets:rm"],"flags":{},"args":[{"name":"name"}]},"secrets:list":{"id":"secrets:list","description":"list of the secrets you have access to","pluginName":"@fonoster/ctl","pluginType":"core","aliases":["secrets:ls"],"flags":{"size":{"name":"size","type":"option","char":"s","description":"secrets of result per page","default":25}},"args":[]}}}
|