@fonoster/ctl 0.4.8 → 0.7.37
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/LICENSE +2 -2
- package/README.md +349 -606
- package/bin/run.js +7 -0
- package/dist/commands/workspace/login.d.ts +6 -0
- package/dist/commands/workspace/login.js +80 -0
- package/dist/config/addWorkspace.d.ts +3 -0
- package/dist/config/addWorkspace.js +10 -0
- package/dist/config/getConfig.d.ts +3 -0
- package/dist/{commands/projects/delete.js → config/getConfig.js} +10 -14
- package/dist/config/getCurrentWorkspace.d.ts +3 -0
- package/dist/config/getCurrentWorkspace.js +10 -0
- package/dist/config/index.d.ts +7 -0
- package/dist/config/index.js +41 -0
- package/dist/config/removeWorkspace.d.ts +3 -0
- package/dist/config/removeWorkspace.js +6 -0
- package/dist/config/saveConfig.d.ts +3 -0
- package/dist/{commands/feedback.js → config/saveConfig.js} +11 -12
- package/dist/config/setCurrentWorkspace.d.ts +3 -0
- package/dist/config/setCurrentWorkspace.js +11 -0
- package/dist/config/types.d.ts +4 -0
- package/dist/config/types.js +2 -0
- package/dist/config/validations.d.ts +24 -0
- package/dist/{index.js → config/validations.js} +12 -4
- package/dist/constants.d.ts +3 -0
- package/dist/{utils.js → constants.js} +7 -10
- package/package.json +29 -64
- package/bin/run +0 -5
- package/bin/run.cmd +0 -3
- package/dist/base/delete.d.ts +0 -9
- package/dist/base/delete.js +0 -50
- package/dist/commands/agents/create.d.ts +0 -6
- package/dist/commands/agents/create.js +0 -112
- package/dist/commands/agents/delete.d.ts +0 -9
- package/dist/commands/agents/delete.js +0 -39
- package/dist/commands/agents/get.d.ts +0 -9
- package/dist/commands/agents/get.js +0 -60
- package/dist/commands/agents/list.d.ts +0 -10
- package/dist/commands/agents/list.js +0 -92
- package/dist/commands/agents/update.d.ts +0 -9
- package/dist/commands/agents/update.js +0 -90
- package/dist/commands/apps/create.d.ts +0 -6
- package/dist/commands/apps/create.js +0 -213
- package/dist/commands/apps/delete.d.ts +0 -9
- package/dist/commands/apps/delete.js +0 -54
- package/dist/commands/apps/list.d.ts +0 -10
- package/dist/commands/apps/list.js +0 -107
- package/dist/commands/apps/update.d.ts +0 -9
- package/dist/commands/apps/update.js +0 -235
- package/dist/commands/auth/login.d.ts +0 -6
- package/dist/commands/auth/login.js +0 -84
- package/dist/commands/auth/logout.d.ts +0 -6
- package/dist/commands/auth/logout.js +0 -46
- package/dist/commands/bug.d.ts +0 -6
- package/dist/commands/bug.js +0 -33
- package/dist/commands/domains/create.d.ts +0 -6
- package/dist/commands/domains/create.js +0 -130
- package/dist/commands/domains/delete.d.ts +0 -9
- package/dist/commands/domains/delete.js +0 -49
- package/dist/commands/domains/get.d.ts +0 -9
- package/dist/commands/domains/get.js +0 -63
- package/dist/commands/domains/list.d.ts +0 -10
- package/dist/commands/domains/list.js +0 -95
- package/dist/commands/domains/update.d.ts +0 -9
- package/dist/commands/domains/update.js +0 -124
- package/dist/commands/feedback.d.ts +0 -6
- package/dist/commands/numbers/create.d.ts +0 -6
- package/dist/commands/numbers/create.js +0 -117
- package/dist/commands/numbers/delete.d.ts +0 -9
- package/dist/commands/numbers/delete.js +0 -49
- package/dist/commands/numbers/get.d.ts +0 -9
- package/dist/commands/numbers/get.js +0 -59
- package/dist/commands/numbers/list.d.ts +0 -10
- package/dist/commands/numbers/list.js +0 -100
- package/dist/commands/numbers/update.d.ts +0 -9
- package/dist/commands/numbers/update.js +0 -104
- package/dist/commands/projects/create.d.ts +0 -6
- package/dist/commands/projects/create.js +0 -75
- package/dist/commands/projects/delete.d.ts +0 -9
- package/dist/commands/projects/get.d.ts +0 -9
- package/dist/commands/projects/get.js +0 -55
- package/dist/commands/projects/list.d.ts +0 -6
- package/dist/commands/projects/list.js +0 -50
- package/dist/commands/projects/renew.d.ts +0 -9
- package/dist/commands/projects/renew.js +0 -47
- package/dist/commands/projects/use.d.ts +0 -9
- package/dist/commands/projects/use.js +0 -60
- package/dist/commands/providers/create.d.ts +0 -6
- package/dist/commands/providers/create.js +0 -114
- package/dist/commands/providers/delete.d.ts +0 -9
- package/dist/commands/providers/delete.js +0 -49
- package/dist/commands/providers/get.d.ts +0 -9
- package/dist/commands/providers/get.js +0 -61
- package/dist/commands/providers/list.d.ts +0 -10
- package/dist/commands/providers/list.js +0 -98
- package/dist/commands/providers/update.d.ts +0 -9
- package/dist/commands/providers/update.js +0 -113
- package/dist/commands/secrets/create.d.ts +0 -14
- package/dist/commands/secrets/create.js +0 -69
- package/dist/commands/secrets/delete.d.ts +0 -10
- package/dist/commands/secrets/delete.js +0 -57
- package/dist/commands/secrets/list.d.ts +0 -10
- package/dist/commands/secrets/list.js +0 -71
- package/dist/config.d.ts +0 -29
- package/dist/config.js +0 -73
- package/dist/data/voices.d.ts +0 -1
- package/dist/data/voices.js +0 -337
- package/dist/decorators/project_guard.d.ts +0 -9
- package/dist/decorators/project_guard.js +0 -44
- package/dist/help.d.ts +0 -6
- package/dist/help.js +0 -47
- package/dist/index.d.ts +0 -1
- package/dist/utils.d.ts +0 -1
|
@@ -1,57 +0,0 @@
|
|
|
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) 2023 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;
|
|
@@ -1,10 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,71 +0,0 @@
|
|
|
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) 2023 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;
|
package/dist/config.d.ts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
export interface ProjectConfig {
|
|
2
|
-
endpoint: string;
|
|
3
|
-
accessKeyId: string;
|
|
4
|
-
accessKeySecret: string;
|
|
5
|
-
}
|
|
6
|
-
export interface Config {
|
|
7
|
-
endpoint: string;
|
|
8
|
-
accessKeyId: string;
|
|
9
|
-
accessKeySecret: string;
|
|
10
|
-
defaultProject?: {
|
|
11
|
-
name: string;
|
|
12
|
-
accessKeyId: string;
|
|
13
|
-
accessKeySecret: string;
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
export declare function getConfig(): Config;
|
|
17
|
-
export declare function getProjectConfig(): {
|
|
18
|
-
endpoint: string;
|
|
19
|
-
accessKeyId: string;
|
|
20
|
-
accessKeySecret: string;
|
|
21
|
-
};
|
|
22
|
-
export declare function setConfig(config: Config): void;
|
|
23
|
-
export declare function unsetDefaultProject(): void;
|
|
24
|
-
export declare function isDefaultProject(ref: string): boolean;
|
|
25
|
-
export declare function hasProjectConfig(): {
|
|
26
|
-
name: string;
|
|
27
|
-
accessKeyId: string;
|
|
28
|
-
accessKeySecret: string;
|
|
29
|
-
};
|
package/dist/config.js
DELETED
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.hasProjectConfig = exports.isDefaultProject = exports.unsetDefaultProject = exports.setConfig = exports.getProjectConfig = exports.getConfig = void 0;
|
|
4
|
-
/*
|
|
5
|
-
* Copyright (C) 2023 by Fonoster Inc (https://fonoster.com)
|
|
6
|
-
* http://github.com/fonoster/fonoster
|
|
7
|
-
*
|
|
8
|
-
* This file is part of Fonoster
|
|
9
|
-
*
|
|
10
|
-
* Licensed under the MIT License (the "License");
|
|
11
|
-
* you may not use this file except in compliance with
|
|
12
|
-
* the License. You may obtain a copy of the License at
|
|
13
|
-
*
|
|
14
|
-
* https://opensource.org/licenses/MIT
|
|
15
|
-
*
|
|
16
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
17
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
18
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
19
|
-
* See the License for the specific language governing permissions and
|
|
20
|
-
* limitations under the License.
|
|
21
|
-
*/
|
|
22
|
-
const logger_1 = require("@fonoster/logger");
|
|
23
|
-
const path_1 = require("path");
|
|
24
|
-
const os_1 = require("os");
|
|
25
|
-
const BASE_DIR = (0, path_1.join)((0, os_1.homedir)(), ".fonoster");
|
|
26
|
-
const PATH_TO_CONFIG = (0, path_1.join)(BASE_DIR, "config");
|
|
27
|
-
const fs = require("fs");
|
|
28
|
-
(0, logger_1.mute)();
|
|
29
|
-
function getConfig() {
|
|
30
|
-
if (!fs.existsSync(BASE_DIR)) {
|
|
31
|
-
throw new Error("no config found");
|
|
32
|
-
}
|
|
33
|
-
try {
|
|
34
|
-
return JSON.parse(fs.readFileSync(PATH_TO_CONFIG));
|
|
35
|
-
}
|
|
36
|
-
catch (e) {
|
|
37
|
-
throw new Error("malformed config: " + e);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
exports.getConfig = getConfig;
|
|
41
|
-
function getProjectConfig() {
|
|
42
|
-
const { endpoint, defaultProject } = getConfig();
|
|
43
|
-
return {
|
|
44
|
-
endpoint,
|
|
45
|
-
accessKeyId: defaultProject.accessKeyId,
|
|
46
|
-
accessKeySecret: defaultProject.accessKeySecret
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
exports.getProjectConfig = getProjectConfig;
|
|
50
|
-
function setConfig(config) {
|
|
51
|
-
if (fs.existsSync(BASE_DIR)) {
|
|
52
|
-
fs.rmSync(BASE_DIR, { recursive: true });
|
|
53
|
-
}
|
|
54
|
-
fs.mkdirSync(BASE_DIR, { recursive: true });
|
|
55
|
-
fs.writeFileSync(PATH_TO_CONFIG, JSON.stringify(config, null, " "));
|
|
56
|
-
}
|
|
57
|
-
exports.setConfig = setConfig;
|
|
58
|
-
function unsetDefaultProject() {
|
|
59
|
-
const config = getConfig();
|
|
60
|
-
config.defaultProject = void 0;
|
|
61
|
-
setConfig(config);
|
|
62
|
-
}
|
|
63
|
-
exports.unsetDefaultProject = unsetDefaultProject;
|
|
64
|
-
function isDefaultProject(ref) {
|
|
65
|
-
const config = getConfig();
|
|
66
|
-
return config.defaultProject && config.defaultProject.accessKeyId === ref;
|
|
67
|
-
}
|
|
68
|
-
exports.isDefaultProject = isDefaultProject;
|
|
69
|
-
function hasProjectConfig() {
|
|
70
|
-
const config = getConfig();
|
|
71
|
-
return config.defaultProject;
|
|
72
|
-
}
|
|
73
|
-
exports.hasProjectConfig = hasProjectConfig;
|
package/dist/data/voices.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const voices: string[];
|
package/dist/data/voices.js
DELETED
|
@@ -1,337 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.voices = void 0;
|
|
4
|
-
/*
|
|
5
|
-
* Copyright (C) 2023 by Fonoster Inc (https://fonoster.com)
|
|
6
|
-
* http://github.com/fonoster/fonoster
|
|
7
|
-
*
|
|
8
|
-
* This file is part of Fonoster
|
|
9
|
-
*
|
|
10
|
-
* Licensed under the MIT License (the "License");
|
|
11
|
-
* you may not use this file except in compliance with
|
|
12
|
-
* the License. You may obtain a copy of the License at
|
|
13
|
-
*
|
|
14
|
-
* https://opensource.org/licenses/MIT
|
|
15
|
-
*
|
|
16
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
17
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
18
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
19
|
-
* See the License for the specific language governing permissions and
|
|
20
|
-
* limitations under the License.
|
|
21
|
-
*/
|
|
22
|
-
exports.voices = [
|
|
23
|
-
"ar-XA-Wavenet-A",
|
|
24
|
-
"ar-XA-Wavenet-B",
|
|
25
|
-
"ar-XA-Wavenet-C",
|
|
26
|
-
"ar-XA-Wavenet-D",
|
|
27
|
-
"bn-IN-Wavenet-A",
|
|
28
|
-
"bn-IN-Wavenet-B",
|
|
29
|
-
"en-GB-Wavenet-A",
|
|
30
|
-
"en-GB-Wavenet-B",
|
|
31
|
-
"en-GB-Wavenet-C",
|
|
32
|
-
"en-GB-Wavenet-D",
|
|
33
|
-
"en-GB-Wavenet-F",
|
|
34
|
-
"fr-CA-Wavenet-A",
|
|
35
|
-
"fr-CA-Wavenet-B",
|
|
36
|
-
"fr-CA-Wavenet-C",
|
|
37
|
-
"fr-CA-Wavenet-D",
|
|
38
|
-
"en-US-Wavenet-G",
|
|
39
|
-
"en-US-Wavenet-H",
|
|
40
|
-
"en-US-Wavenet-I",
|
|
41
|
-
"en-US-Wavenet-J",
|
|
42
|
-
"en-US-Wavenet-A",
|
|
43
|
-
"en-US-Wavenet-B",
|
|
44
|
-
"en-US-Wavenet-C",
|
|
45
|
-
"en-US-Wavenet-D",
|
|
46
|
-
"en-US-Wavenet-E",
|
|
47
|
-
"en-US-Wavenet-F",
|
|
48
|
-
"es-ES-Wavenet-C",
|
|
49
|
-
"es-ES-Wavenet-D",
|
|
50
|
-
"es-ES-Wavenet-B",
|
|
51
|
-
"fi-FI-Wavenet-A",
|
|
52
|
-
"gu-IN-Wavenet-A",
|
|
53
|
-
"gu-IN-Wavenet-B",
|
|
54
|
-
"ja-JP-Wavenet-B",
|
|
55
|
-
"ja-JP-Wavenet-C",
|
|
56
|
-
"ja-JP-Wavenet-D",
|
|
57
|
-
"ja-JP-Wavenet-A",
|
|
58
|
-
"kn-IN-Wavenet-A",
|
|
59
|
-
"kn-IN-Wavenet-B",
|
|
60
|
-
"ml-IN-Wavenet-A",
|
|
61
|
-
"ml-IN-Wavenet-B",
|
|
62
|
-
"sv-SE-Wavenet-A",
|
|
63
|
-
"sv-SE-Wavenet-B",
|
|
64
|
-
"sv-SE-Wavenet-C",
|
|
65
|
-
"sv-SE-Wavenet-D",
|
|
66
|
-
"sv-SE-Wavenet-E",
|
|
67
|
-
"ta-IN-Wavenet-A",
|
|
68
|
-
"ta-IN-Wavenet-B",
|
|
69
|
-
"tr-TR-Wavenet-B",
|
|
70
|
-
"tr-TR-Wavenet-C",
|
|
71
|
-
"tr-TR-Wavenet-D",
|
|
72
|
-
"tr-TR-Wavenet-E",
|
|
73
|
-
"tr-TR-Wavenet-A",
|
|
74
|
-
"ms-MY-Wavenet-A",
|
|
75
|
-
"ms-MY-Wavenet-B",
|
|
76
|
-
"ms-MY-Wavenet-C",
|
|
77
|
-
"ms-MY-Wavenet-D",
|
|
78
|
-
"pa-IN-Wavenet-A",
|
|
79
|
-
"pa-IN-Wavenet-B",
|
|
80
|
-
"pa-IN-Wavenet-C",
|
|
81
|
-
"pa-IN-Wavenet-D",
|
|
82
|
-
"cs-CZ-Wavenet-A",
|
|
83
|
-
"de-DE-Wavenet-F",
|
|
84
|
-
"de-DE-Wavenet-A",
|
|
85
|
-
"de-DE-Wavenet-B",
|
|
86
|
-
"de-DE-Wavenet-C",
|
|
87
|
-
"de-DE-Wavenet-D",
|
|
88
|
-
"de-DE-Wavenet-E",
|
|
89
|
-
"en-AU-Wavenet-A",
|
|
90
|
-
"en-AU-Wavenet-B",
|
|
91
|
-
"en-AU-Wavenet-C",
|
|
92
|
-
"en-AU-Wavenet-D",
|
|
93
|
-
"en-IN-Wavenet-D",
|
|
94
|
-
"en-IN-Wavenet-A",
|
|
95
|
-
"en-IN-Wavenet-B",
|
|
96
|
-
"en-IN-Wavenet-C",
|
|
97
|
-
"es-US-Wavenet-A",
|
|
98
|
-
"es-US-Wavenet-B",
|
|
99
|
-
"es-US-Wavenet-C",
|
|
100
|
-
"fr-FR-Wavenet-E",
|
|
101
|
-
"fr-FR-Wavenet-A",
|
|
102
|
-
"fr-FR-Wavenet-B",
|
|
103
|
-
"fr-FR-Wavenet-C",
|
|
104
|
-
"fr-FR-Wavenet-D",
|
|
105
|
-
"hi-IN-Wavenet-D",
|
|
106
|
-
"hi-IN-Wavenet-A",
|
|
107
|
-
"hi-IN-Wavenet-B",
|
|
108
|
-
"hi-IN-Wavenet-C",
|
|
109
|
-
"id-ID-Wavenet-D",
|
|
110
|
-
"id-ID-Wavenet-A",
|
|
111
|
-
"id-ID-Wavenet-B",
|
|
112
|
-
"id-ID-Wavenet-C",
|
|
113
|
-
"it-IT-Wavenet-A",
|
|
114
|
-
"it-IT-Wavenet-B",
|
|
115
|
-
"it-IT-Wavenet-C",
|
|
116
|
-
"it-IT-Wavenet-D",
|
|
117
|
-
"ko-KR-Wavenet-A",
|
|
118
|
-
"ko-KR-Wavenet-B",
|
|
119
|
-
"ko-KR-Wavenet-C",
|
|
120
|
-
"ko-KR-Wavenet-D",
|
|
121
|
-
"ru-RU-Wavenet-E",
|
|
122
|
-
"ru-RU-Wavenet-A",
|
|
123
|
-
"ru-RU-Wavenet-B",
|
|
124
|
-
"ru-RU-Wavenet-C",
|
|
125
|
-
"ru-RU-Wavenet-D",
|
|
126
|
-
"uk-UA-Wavenet-A",
|
|
127
|
-
"cmn-CN-Wavenet-A",
|
|
128
|
-
"cmn-CN-Wavenet-B",
|
|
129
|
-
"cmn-CN-Wavenet-C",
|
|
130
|
-
"cmn-CN-Wavenet-D",
|
|
131
|
-
"cmn-TW-Wavenet-A",
|
|
132
|
-
"cmn-TW-Wavenet-B",
|
|
133
|
-
"cmn-TW-Wavenet-C",
|
|
134
|
-
"da-DK-Wavenet-C",
|
|
135
|
-
"da-DK-Wavenet-D",
|
|
136
|
-
"da-DK-Wavenet-E",
|
|
137
|
-
"da-DK-Wavenet-A",
|
|
138
|
-
"el-GR-Wavenet-A",
|
|
139
|
-
"fil-PH-Wavenet-A",
|
|
140
|
-
"fil-PH-Wavenet-B",
|
|
141
|
-
"fil-PH-Wavenet-C",
|
|
142
|
-
"fil-PH-Wavenet-D",
|
|
143
|
-
"hu-HU-Wavenet-A",
|
|
144
|
-
"nb-NO-Wavenet-A",
|
|
145
|
-
"nb-NO-Wavenet-B",
|
|
146
|
-
"nb-NO-Wavenet-C",
|
|
147
|
-
"nb-NO-Wavenet-D",
|
|
148
|
-
"nb-no-Wavenet-E",
|
|
149
|
-
"nl-BE-Wavenet-A",
|
|
150
|
-
"nl-BE-Wavenet-B",
|
|
151
|
-
"nl-NL-Wavenet-B",
|
|
152
|
-
"nl-NL-Wavenet-C",
|
|
153
|
-
"nl-NL-Wavenet-D",
|
|
154
|
-
"nl-NL-Wavenet-A",
|
|
155
|
-
"nl-NL-Wavenet-E",
|
|
156
|
-
"pt-PT-Wavenet-A",
|
|
157
|
-
"pt-PT-Wavenet-B",
|
|
158
|
-
"pt-PT-Wavenet-C",
|
|
159
|
-
"pt-PT-Wavenet-D",
|
|
160
|
-
"sk-SK-Wavenet-A",
|
|
161
|
-
"vi-VN-Wavenet-A",
|
|
162
|
-
"vi-VN-Wavenet-B",
|
|
163
|
-
"vi-VN-Wavenet-C",
|
|
164
|
-
"vi-VN-Wavenet-D",
|
|
165
|
-
"pl-PL-Wavenet-A",
|
|
166
|
-
"pl-PL-Wavenet-B",
|
|
167
|
-
"pl-PL-Wavenet-C",
|
|
168
|
-
"pl-PL-Wavenet-E",
|
|
169
|
-
"pl-PL-Wavenet-D",
|
|
170
|
-
"pt-BR-Wavenet-A",
|
|
171
|
-
"pt-BR-Wavenet-B",
|
|
172
|
-
"ro-RO-Wavenet-A",
|
|
173
|
-
"da-DK-Standard-A",
|
|
174
|
-
"da-DK-Standard-C",
|
|
175
|
-
"da-DK-Standard-D",
|
|
176
|
-
"da-DK-Standard-E",
|
|
177
|
-
"fi-FI-Standard-A",
|
|
178
|
-
"is-is-Standard-A",
|
|
179
|
-
"nb-NO-Standard-A",
|
|
180
|
-
"nb-NO-Standard-B",
|
|
181
|
-
"nb-NO-Standard-C",
|
|
182
|
-
"nb-NO-Standard-D",
|
|
183
|
-
"nb-no-Standard-E",
|
|
184
|
-
"pt-PT-Standard-A",
|
|
185
|
-
"pt-PT-Standard-B",
|
|
186
|
-
"pt-PT-Standard-C",
|
|
187
|
-
"pt-PT-Standard-D",
|
|
188
|
-
"sv-SE-Standard-B",
|
|
189
|
-
"sv-SE-Standard-C",
|
|
190
|
-
"sv-SE-Standard-D",
|
|
191
|
-
"sv-SE-Standard-E",
|
|
192
|
-
"sv-SE-Standard-A",
|
|
193
|
-
"fr-FR-Standard-A",
|
|
194
|
-
"fr-FR-Standard-B",
|
|
195
|
-
"fr-FR-Standard-C",
|
|
196
|
-
"fr-FR-Standard-D",
|
|
197
|
-
"de-DE-Standard-E",
|
|
198
|
-
"de-DE-Standard-A",
|
|
199
|
-
"de-DE-Standard-B",
|
|
200
|
-
"de-DE-Standard-C",
|
|
201
|
-
"de-DE-Standard-D",
|
|
202
|
-
"de-DE-Standard-F",
|
|
203
|
-
"fr-CA-Standard-A",
|
|
204
|
-
"fr-CA-Standard-B",
|
|
205
|
-
"fr-CA-Standard-C",
|
|
206
|
-
"fr-CA-Standard-D",
|
|
207
|
-
"it-IT-Standard-B",
|
|
208
|
-
"it-IT-Standard-C",
|
|
209
|
-
"it-IT-Standard-D",
|
|
210
|
-
"en-AU-Standard-A",
|
|
211
|
-
"en-AU-Standard-B",
|
|
212
|
-
"en-AU-Standard-C",
|
|
213
|
-
"en-AU-Standard-D",
|
|
214
|
-
"en-GB-Standard-A",
|
|
215
|
-
"en-GB-Standard-B",
|
|
216
|
-
"en-GB-Standard-C",
|
|
217
|
-
"en-GB-Standard-D",
|
|
218
|
-
"en-GB-Standard-F",
|
|
219
|
-
"th-TH-Standard-A",
|
|
220
|
-
"bn-IN-Standard-A",
|
|
221
|
-
"bn-IN-Standard-B",
|
|
222
|
-
"en-IN-Standard-D",
|
|
223
|
-
"en-IN-Standard-A",
|
|
224
|
-
"en-IN-Standard-B",
|
|
225
|
-
"en-IN-Standard-C",
|
|
226
|
-
"gu-IN-Standard-A",
|
|
227
|
-
"gu-IN-Standard-B",
|
|
228
|
-
"hi-IN-Standard-D",
|
|
229
|
-
"hi-IN-Standard-A",
|
|
230
|
-
"hi-IN-Standard-B",
|
|
231
|
-
"hi-IN-Standard-C",
|
|
232
|
-
"kn-IN-Standard-A",
|
|
233
|
-
"kn-IN-Standard-B",
|
|
234
|
-
"ml-IN-Standard-A",
|
|
235
|
-
"ml-IN-Standard-B",
|
|
236
|
-
"ta-IN-Standard-A",
|
|
237
|
-
"ta-IN-Standard-B",
|
|
238
|
-
"te-IN-Standard-A",
|
|
239
|
-
"te-IN-Standard-B",
|
|
240
|
-
"pa-IN-Standard-A",
|
|
241
|
-
"pa-IN-Standard-B",
|
|
242
|
-
"pa-IN-Standard-C",
|
|
243
|
-
"pa-IN-Standard-D",
|
|
244
|
-
"af-ZA-Standard-A",
|
|
245
|
-
"bg-bg-Standard-A",
|
|
246
|
-
"hu-HU-Standard-A",
|
|
247
|
-
"lv-lv-Standard-A",
|
|
248
|
-
"ro-RO-Standard-A",
|
|
249
|
-
"sk-SK-Standard-A",
|
|
250
|
-
"sr-rs-Standard-A",
|
|
251
|
-
"uk-UA-Standard-A",
|
|
252
|
-
"pl-PL-Standard-A",
|
|
253
|
-
"pl-PL-Standard-B",
|
|
254
|
-
"pl-PL-Standard-C",
|
|
255
|
-
"pl-PL-Standard-E",
|
|
256
|
-
"pl-PL-Standard-D",
|
|
257
|
-
"tr-TR-Standard-B",
|
|
258
|
-
"tr-TR-Standard-C",
|
|
259
|
-
"tr-TR-Standard-D",
|
|
260
|
-
"tr-TR-Standard-E",
|
|
261
|
-
"tr-TR-Standard-A",
|
|
262
|
-
"cs-CZ-Standard-A",
|
|
263
|
-
"el-GR-Standard-A",
|
|
264
|
-
"pt-BR-Standard-A",
|
|
265
|
-
"pt-BR-Standard-B",
|
|
266
|
-
"es-US-Standard-A",
|
|
267
|
-
"es-US-Standard-B",
|
|
268
|
-
"es-US-Standard-C",
|
|
269
|
-
"ms-MY-Standard-A",
|
|
270
|
-
"ms-MY-Standard-B",
|
|
271
|
-
"ms-MY-Standard-C",
|
|
272
|
-
"ms-MY-Standard-D",
|
|
273
|
-
"id-ID-Standard-A",
|
|
274
|
-
"id-ID-Standard-B",
|
|
275
|
-
"id-ID-Standard-C",
|
|
276
|
-
"id-ID-Standard-D",
|
|
277
|
-
"nl-BE-Standard-A",
|
|
278
|
-
"nl-BE-Standard-B",
|
|
279
|
-
"nl-NL-Standard-B",
|
|
280
|
-
"nl-NL-Standard-C",
|
|
281
|
-
"nl-NL-Standard-D",
|
|
282
|
-
"nl-NL-Standard-A",
|
|
283
|
-
"nl-NL-Standard-E",
|
|
284
|
-
"fil-PH-Standard-A",
|
|
285
|
-
"fil-PH-Standard-B",
|
|
286
|
-
"fil-PH-Standard-C",
|
|
287
|
-
"fil-PH-Standard-D",
|
|
288
|
-
"yue-HK-Standard-A",
|
|
289
|
-
"yue-HK-Standard-B",
|
|
290
|
-
"yue-HK-Standard-C",
|
|
291
|
-
"yue-HK-Standard-D",
|
|
292
|
-
"cmn-CN-Standard-C",
|
|
293
|
-
"cmn-CN-Standard-B",
|
|
294
|
-
"cmn-CN-Standard-A",
|
|
295
|
-
"cmn-CN-Standard-D",
|
|
296
|
-
"ja-JP-Standard-A",
|
|
297
|
-
"ja-JP-Standard-B",
|
|
298
|
-
"ja-JP-Standard-C",
|
|
299
|
-
"ja-JP-Standard-D",
|
|
300
|
-
"cmn-TW-Standard-A",
|
|
301
|
-
"cmn-TW-Standard-B",
|
|
302
|
-
"cmn-TW-Standard-C",
|
|
303
|
-
"ko-KR-Standard-B",
|
|
304
|
-
"ko-KR-Standard-C",
|
|
305
|
-
"ko-KR-Standard-D",
|
|
306
|
-
"ko-KR-Standard-A",
|
|
307
|
-
"vi-VN-Standard-A",
|
|
308
|
-
"vi-VN-Standard-B",
|
|
309
|
-
"vi-VN-Standard-C",
|
|
310
|
-
"vi-VN-Standard-D",
|
|
311
|
-
"ar-XA-Standard-A",
|
|
312
|
-
"ar-XA-Standard-B",
|
|
313
|
-
"ar-XA-Standard-C",
|
|
314
|
-
"ar-XA-Standard-D",
|
|
315
|
-
"fr-FR-Standard-E",
|
|
316
|
-
"it-IT-Standard-A",
|
|
317
|
-
"ru-RU-Standard-E",
|
|
318
|
-
"ru-RU-Standard-A",
|
|
319
|
-
"ru-RU-Standard-B",
|
|
320
|
-
"ru-RU-Standard-C",
|
|
321
|
-
"ru-RU-Standard-D",
|
|
322
|
-
"en-US-Standard-A",
|
|
323
|
-
"en-US-Standard-B",
|
|
324
|
-
"en-US-Standard-C",
|
|
325
|
-
"en-US-Standard-D",
|
|
326
|
-
"en-US-Standard-E",
|
|
327
|
-
"en-US-Standard-F",
|
|
328
|
-
"en-US-Standard-G",
|
|
329
|
-
"en-US-Standard-H",
|
|
330
|
-
"en-US-Standard-I",
|
|
331
|
-
"en-US-Standard-J",
|
|
332
|
-
"ca-es-Standard-A",
|
|
333
|
-
"es-ES-Standard-C",
|
|
334
|
-
"es-ES-Standard-D",
|
|
335
|
-
"es-ES-Standard-B",
|
|
336
|
-
"es-ES-Standard-A"
|
|
337
|
-
];
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ProjectGuard = void 0;
|
|
4
|
-
/*
|
|
5
|
-
* Copyright (C) 2023 by Fonoster Inc (https://fonoster.com)
|
|
6
|
-
* http://github.com/fonoster/fonoster
|
|
7
|
-
*
|
|
8
|
-
* This file is part of Fonoster
|
|
9
|
-
*
|
|
10
|
-
* Licensed under the MIT License (the "License");
|
|
11
|
-
* you may not use this file except in compliance with
|
|
12
|
-
* the License. You may obtain a copy of the License at
|
|
13
|
-
*
|
|
14
|
-
* https://opensource.org/licenses/MIT
|
|
15
|
-
*
|
|
16
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
17
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
18
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
19
|
-
* See the License for the specific language governing permissions and
|
|
20
|
-
* limitations under the License.
|
|
21
|
-
*/
|
|
22
|
-
const errors_1 = require("@oclif/errors");
|
|
23
|
-
const config_1 = require("../config");
|
|
24
|
-
/**
|
|
25
|
-
* Project Guard
|
|
26
|
-
*
|
|
27
|
-
* @description Guardian that is responsible for validating that a default project exists.
|
|
28
|
-
*
|
|
29
|
-
* @return {*} {MethodDecorator}
|
|
30
|
-
* @author Fonoster
|
|
31
|
-
*/
|
|
32
|
-
const ProjectGuard = function () {
|
|
33
|
-
return function (_target, _propertyKey, descriptor) {
|
|
34
|
-
const method = descriptor.value;
|
|
35
|
-
descriptor.value = async function (...args) {
|
|
36
|
-
if (!(0, config_1.hasProjectConfig)()) {
|
|
37
|
-
throw new errors_1.CLIError("you must set a default project before using this command");
|
|
38
|
-
}
|
|
39
|
-
return method.apply(this, args);
|
|
40
|
-
};
|
|
41
|
-
return descriptor;
|
|
42
|
-
};
|
|
43
|
-
};
|
|
44
|
-
exports.ProjectGuard = ProjectGuard;
|
package/dist/help.d.ts
DELETED
package/dist/help.js
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
/*
|
|
4
|
-
* Copyright (C) 2023 by Fonoster Inc (https://fonoster.com)
|
|
5
|
-
* http://github.com/fonoster/fonoster
|
|
6
|
-
*
|
|
7
|
-
* This file is part of Fonoster
|
|
8
|
-
*
|
|
9
|
-
* Licensed under the MIT License (the "License");
|
|
10
|
-
* you may not use this file except in compliance with
|
|
11
|
-
* the License. You may obtain a copy of the License at
|
|
12
|
-
*
|
|
13
|
-
* https://opensource.org/licenses/MIT
|
|
14
|
-
*
|
|
15
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
16
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
17
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
18
|
-
* See the License for the specific language governing permissions and
|
|
19
|
-
* limitations under the License.
|
|
20
|
-
*/
|
|
21
|
-
const plugin_help_1 = require("@oclif/plugin-help");
|
|
22
|
-
const figlet = require("figlet");
|
|
23
|
-
class MyHelpClass extends plugin_help_1.Help {
|
|
24
|
-
showRootHelp() {
|
|
25
|
-
this.showLogo();
|
|
26
|
-
console.log(this.formatRoot());
|
|
27
|
-
console.log("");
|
|
28
|
-
console.log(this.formatCommands(this.customCommands));
|
|
29
|
-
console.log("");
|
|
30
|
-
}
|
|
31
|
-
showLogo() {
|
|
32
|
-
console.log("\x1b[32m");
|
|
33
|
-
console.log(figlet.textSync("Fonoster", {
|
|
34
|
-
horizontalLayout: "default",
|
|
35
|
-
verticalLayout: "default",
|
|
36
|
-
width: 60,
|
|
37
|
-
whitespaceBreak: true
|
|
38
|
-
}));
|
|
39
|
-
console.log("\x1b[0m");
|
|
40
|
-
}
|
|
41
|
-
get customCommands() {
|
|
42
|
-
return this.sortedCommands
|
|
43
|
-
.filter((c) => c.id)
|
|
44
|
-
.sort((a, b) => (a.id.includes(":") ? 1 : b.id.includes(":") ? -1 : 0));
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
exports.default = MyHelpClass;
|