clever-tools 4.4.0 → 4.5.0
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/bin/clever.js +208 -2128
- package/package.json +33 -25
- package/src/clever-client/auth-bridge.js +0 -9
- package/src/clever-client/drains.js +0 -17
- package/src/clever-client/operators.js +1 -1
- package/src/commands/README.md +65 -0
- package/src/commands/accesslogs/accesslogs.command.js +158 -0
- package/src/commands/accesslogs/accesslogs.docs.md +20 -0
- package/src/commands/{activity.js → activity/activity.command.js} +74 -44
- package/src/commands/activity/activity.docs.md +19 -0
- package/src/commands/addon/addon.args.js +14 -0
- package/src/commands/addon/addon.command.js +7 -0
- package/src/commands/addon/addon.create.command.js +236 -0
- package/src/commands/addon/addon.delete.command.js +32 -0
- package/src/commands/addon/addon.docs.md +156 -0
- package/src/commands/addon/addon.env.command.js +50 -0
- package/src/commands/addon/addon.list.command.js +55 -0
- package/src/commands/addon/addon.providers.command.js +45 -0
- package/src/commands/addon/addon.providers.show.command.js +99 -0
- package/src/commands/addon/addon.rename.command.js +24 -0
- package/src/commands/applications/applications.command.js +59 -0
- package/src/commands/applications/applications.docs.md +31 -0
- package/src/commands/applications/applications.list.command.js +100 -0
- package/src/commands/cancel-deploy/cancel-deploy.command.js +30 -0
- package/src/commands/cancel-deploy/cancel-deploy.docs.md +16 -0
- package/src/commands/config/config.args.js +10 -0
- package/src/commands/config/config.command.js +20 -0
- package/src/commands/config/config.docs.md +86 -0
- package/src/commands/config/config.get.command.js +21 -0
- package/src/commands/config/config.set.command.js +38 -0
- package/src/commands/config/config.update.command.js +88 -0
- package/src/commands/console/console.command.js +31 -0
- package/src/commands/console/console.docs.md +16 -0
- package/src/commands/create/create.command.js +173 -0
- package/src/commands/create/create.docs.md +27 -0
- package/src/commands/{curl.js → curl/curl.command.js} +10 -3
- package/src/commands/curl/curl.docs.md +9 -0
- package/src/commands/database/database.args.js +8 -0
- package/src/commands/database/database.backups.command.js +60 -0
- package/src/commands/database/database.backups.download.command.js +55 -0
- package/src/commands/database/database.command.js +10 -0
- package/src/commands/database/database.docs.md +52 -0
- package/src/commands/delete/delete.command.js +43 -0
- package/src/commands/delete/delete.docs.md +17 -0
- package/src/commands/deploy/deploy.command.js +166 -0
- package/src/commands/deploy/deploy.docs.md +22 -0
- package/src/commands/diag/diag.command.js +136 -0
- package/src/commands/diag/diag.docs.md +15 -0
- package/src/commands/domain/domain.add.command.js +25 -0
- package/src/commands/domain/domain.args.js +8 -0
- package/src/commands/domain/domain.command.js +38 -0
- package/src/commands/domain/domain.diag.command.js +204 -0
- package/src/commands/domain/domain.docs.md +143 -0
- package/src/commands/domain/domain.favourite.command.js +35 -0
- package/src/commands/domain/domain.favourite.set.command.js +24 -0
- package/src/commands/domain/domain.favourite.unset.command.js +23 -0
- package/src/commands/domain/domain.overview.command.js +157 -0
- package/src/commands/domain/domain.rm.command.js +25 -0
- package/src/commands/drain/drain.args.js +8 -0
- package/src/commands/drain/drain.command.js +56 -0
- package/src/commands/drain/drain.create.command.js +128 -0
- package/src/commands/drain/drain.disable.command.js +27 -0
- package/src/commands/drain/drain.docs.md +129 -0
- package/src/commands/drain/drain.enable.command.js +27 -0
- package/src/commands/drain/drain.get.command.js +38 -0
- package/src/commands/drain/drain.remove.command.js +26 -0
- package/src/commands/emails/emails.add.command.js +32 -0
- package/src/commands/emails/emails.args.js +8 -0
- package/src/commands/emails/emails.command.js +35 -0
- package/src/commands/emails/emails.docs.md +79 -0
- package/src/commands/emails/emails.open.command.js +15 -0
- package/src/commands/emails/emails.primary.command.js +29 -0
- package/src/commands/emails/emails.remove-all.command.js +54 -0
- package/src/commands/emails/emails.remove.command.js +25 -0
- package/src/commands/env/env.command.js +77 -0
- package/src/commands/env/env.docs.md +99 -0
- package/src/commands/env/env.import-vars.command.js +45 -0
- package/src/commands/env/env.import.command.js +29 -0
- package/src/commands/env/env.rm.command.js +25 -0
- package/src/commands/env/env.set.command.js +32 -0
- package/src/commands/features/features.args.js +9 -0
- package/src/commands/features/features.command.js +7 -0
- package/src/commands/features/features.disable.command.js +25 -0
- package/src/commands/features/features.docs.md +71 -0
- package/src/commands/features/features.enable.command.js +32 -0
- package/src/commands/features/features.info.command.js +27 -0
- package/src/commands/features/features.list.command.js +49 -0
- package/src/commands/global.args.js +45 -0
- package/src/commands/global.commands.js +461 -0
- package/src/commands/global.options.js +186 -0
- package/src/commands/help/help.command.js +9 -0
- package/src/commands/help/help.docs.md +9 -0
- package/src/commands/k8s/k8s.add-persistent-storage.command.js +39 -0
- package/src/commands/k8s/k8s.args.js +9 -0
- package/src/commands/k8s/k8s.command.js +12 -0
- package/src/commands/k8s/k8s.create.command.js +86 -0
- package/src/commands/k8s/k8s.delete.command.js +40 -0
- package/src/commands/k8s/k8s.docs.md +131 -0
- package/src/commands/k8s/k8s.get-kubeconfig.command.js +32 -0
- package/src/commands/k8s/k8s.get.command.js +43 -0
- package/src/commands/k8s/k8s.list.command.js +38 -0
- package/src/commands/keycloak/keycloak.command.js +17 -0
- package/src/commands/keycloak/keycloak.disable-ng.command.js +13 -0
- package/src/commands/keycloak/keycloak.docs.md +197 -0
- package/src/commands/keycloak/keycloak.enable-ng.command.js +13 -0
- package/src/commands/keycloak/keycloak.get.command.js +17 -0
- package/src/commands/keycloak/keycloak.open.command.js +13 -0
- package/src/commands/keycloak/keycloak.open.logs.command.js +13 -0
- package/src/commands/keycloak/keycloak.open.webui.command.js +13 -0
- package/src/commands/keycloak/keycloak.rebuild.command.js +13 -0
- package/src/commands/keycloak/keycloak.restart.command.js +13 -0
- package/src/commands/keycloak/keycloak.version.check.command.js +17 -0
- package/src/commands/keycloak/keycloak.version.command.js +17 -0
- package/src/commands/keycloak/keycloak.version.update.command.js +17 -0
- package/src/commands/kv/kv.command.js +99 -0
- package/src/commands/kv/kv.docs.md +27 -0
- package/src/commands/link/link.command.js +31 -0
- package/src/commands/link/link.docs.md +22 -0
- package/src/commands/{login.js → login/login.command.js} +44 -22
- package/src/commands/login/login.docs.md +16 -0
- package/src/commands/logout/logout.command.js +15 -0
- package/src/commands/logout/logout.docs.md +9 -0
- package/src/commands/logs/logs.command.js +81 -0
- package/src/commands/logs/logs.docs.md +22 -0
- package/src/commands/make-default/make-default.command.js +17 -0
- package/src/commands/make-default/make-default.docs.md +15 -0
- package/src/commands/matomo/matomo.command.js +17 -0
- package/src/commands/matomo/matomo.docs.md +109 -0
- package/src/commands/matomo/matomo.get.command.js +17 -0
- package/src/commands/matomo/matomo.open.command.js +13 -0
- package/src/commands/matomo/matomo.open.logs.command.js +13 -0
- package/src/commands/matomo/matomo.open.webui.command.js +13 -0
- package/src/commands/matomo/matomo.rebuild.command.js +13 -0
- package/src/commands/matomo/matomo.restart.command.js +13 -0
- package/src/commands/metabase/metabase.command.js +17 -0
- package/src/commands/metabase/metabase.docs.md +169 -0
- package/src/commands/metabase/metabase.get.command.js +17 -0
- package/src/commands/metabase/metabase.open.command.js +13 -0
- package/src/commands/metabase/metabase.open.logs.command.js +13 -0
- package/src/commands/metabase/metabase.open.webui.command.js +13 -0
- package/src/commands/metabase/metabase.rebuild.command.js +13 -0
- package/src/commands/metabase/metabase.restart.command.js +13 -0
- package/src/commands/metabase/metabase.version.check.command.js +17 -0
- package/src/commands/metabase/metabase.version.command.js +17 -0
- package/src/commands/metabase/metabase.version.update.command.js +17 -0
- package/src/commands/ng/ng.args.js +27 -0
- package/src/commands/ng/ng.command.js +45 -0
- package/src/commands/ng/ng.create.command.js +60 -0
- package/src/commands/ng/ng.create.external.command.js +44 -0
- package/src/commands/ng/ng.delete.command.js +22 -0
- package/src/commands/ng/ng.delete.external.command.js +25 -0
- package/src/commands/ng/ng.docs.md +214 -0
- package/src/commands/ng/ng.get-config.command.js +32 -0
- package/src/commands/ng/ng.get.command.js +22 -0
- package/src/commands/ng/ng.link.command.js +25 -0
- package/src/commands/ng/ng.options.js +9 -0
- package/src/commands/ng/ng.search.command.js +22 -0
- package/src/commands/ng/ng.unlink.command.js +25 -0
- package/src/commands/notify-email/notify-email.add.command.js +65 -0
- package/src/commands/notify-email/notify-email.command.js +61 -0
- package/src/commands/notify-email/notify-email.docs.md +60 -0
- package/src/commands/notify-email/notify-email.remove.command.js +24 -0
- package/src/commands/open/open.command.js +24 -0
- package/src/commands/open/open.docs.md +16 -0
- package/src/commands/otoroshi/otoroshi.command.js +17 -0
- package/src/commands/otoroshi/otoroshi.disable-ng.command.js +13 -0
- package/src/commands/otoroshi/otoroshi.docs.md +211 -0
- package/src/commands/otoroshi/otoroshi.enable-ng.command.js +13 -0
- package/src/commands/otoroshi/otoroshi.get-config.command.js +13 -0
- package/src/commands/otoroshi/otoroshi.get.command.js +17 -0
- package/src/commands/otoroshi/otoroshi.open.command.js +13 -0
- package/src/commands/otoroshi/otoroshi.open.logs.command.js +13 -0
- package/src/commands/otoroshi/otoroshi.open.webui.command.js +13 -0
- package/src/commands/otoroshi/otoroshi.rebuild.command.js +13 -0
- package/src/commands/otoroshi/otoroshi.restart.command.js +13 -0
- package/src/commands/otoroshi/otoroshi.version.check.command.js +17 -0
- package/src/commands/otoroshi/otoroshi.version.command.js +17 -0
- package/src/commands/otoroshi/otoroshi.version.update.command.js +17 -0
- package/src/commands/profile/profile.command.js +60 -0
- package/src/commands/profile/profile.docs.md +23 -0
- package/src/commands/profile/profile.open.command.js +12 -0
- package/src/commands/published-config/published-config.command.js +40 -0
- package/src/commands/published-config/published-config.docs.md +77 -0
- package/src/commands/published-config/published-config.import.command.js +29 -0
- package/src/commands/published-config/published-config.rm.command.js +27 -0
- package/src/commands/published-config/published-config.set.command.js +34 -0
- package/src/commands/restart/restart.command.js +77 -0
- package/src/commands/restart/restart.docs.md +21 -0
- package/src/commands/scale/scale.command.js +121 -0
- package/src/commands/scale/scale.docs.md +23 -0
- package/src/commands/service/service.command.js +91 -0
- package/src/commands/service/service.docs.md +104 -0
- package/src/commands/service/service.link-addon.command.js +24 -0
- package/src/commands/service/service.link-app.command.js +23 -0
- package/src/commands/service/service.unlink-addon.command.js +24 -0
- package/src/commands/service/service.unlink-app.command.js +23 -0
- package/src/commands/ssh/ssh.command.js +40 -0
- package/src/commands/ssh/ssh.docs.md +17 -0
- package/src/commands/ssh-keys/ssh-keys.add.command.js +41 -0
- package/src/commands/ssh-keys/ssh-keys.args.js +8 -0
- package/src/commands/ssh-keys/ssh-keys.command.js +50 -0
- package/src/commands/ssh-keys/ssh-keys.docs.md +66 -0
- package/src/commands/ssh-keys/ssh-keys.open.command.js +12 -0
- package/src/commands/ssh-keys/ssh-keys.remove-all.command.js +54 -0
- package/src/commands/ssh-keys/ssh-keys.remove.command.js +26 -0
- package/src/commands/status/status.command.js +122 -0
- package/src/commands/status/status.docs.md +17 -0
- package/src/commands/stop/stop.command.js +23 -0
- package/src/commands/stop/stop.docs.md +16 -0
- package/src/commands/tcp-redirs/tcp-redirs.add.command.js +24 -0
- package/src/commands/tcp-redirs/tcp-redirs.command.js +41 -0
- package/src/commands/tcp-redirs/tcp-redirs.docs.md +71 -0
- package/src/commands/tcp-redirs/tcp-redirs.list-namespaces.command.js +48 -0
- package/src/commands/tcp-redirs/tcp-redirs.options.js +11 -0
- package/src/commands/tcp-redirs/tcp-redirs.remove.command.js +34 -0
- package/src/commands/tokens/tokens.command.js +43 -0
- package/src/commands/tokens/tokens.create.command.js +108 -0
- package/src/commands/tokens/tokens.docs.md +50 -0
- package/src/commands/tokens/tokens.revoke.command.js +25 -0
- package/src/commands/unlink/unlink.command.js +21 -0
- package/src/commands/unlink/unlink.docs.md +15 -0
- package/src/commands/version/version.command.js +13 -0
- package/src/commands/version/version.docs.md +9 -0
- package/src/commands/webhooks/webhooks.add.command.js +51 -0
- package/src/commands/webhooks/webhooks.command.js +57 -0
- package/src/commands/webhooks/webhooks.docs.md +61 -0
- package/src/commands/webhooks/webhooks.remove.command.js +24 -0
- package/src/lib/cliparse-patched.js +192 -0
- package/src/lib/define-argument.js +7 -0
- package/src/lib/define-argument.types.d.ts +23 -0
- package/src/lib/define-command.js +7 -0
- package/src/lib/define-command.types.d.ts +85 -0
- package/src/lib/define-common.types.d.ts +18 -0
- package/src/lib/define-option.js +7 -0
- package/src/lib/define-option.types.d.ts +29 -0
- package/src/lib/get-command-info.js +86 -0
- package/src/lib/get-command-info.types.d.ts +42 -0
- package/src/lib/k8s.js +1 -1
- package/src/lib/zod-utils.js +66 -0
- package/src/models/addon.js +2 -19
- package/src/models/app_configuration.js +0 -30
- package/src/models/application.js +4 -5
- package/src/models/application_configuration.js +5 -23
- package/src/models/domain.js +34 -2
- package/src/models/exit-strategy-option.js +0 -9
- package/src/models/git.js +1 -4
- package/src/models/log-v4.js +15 -4
- package/src/models/log.js +5 -0
- package/src/models/namespaces.js +1 -2
- package/src/models/notification.js +1 -7
- package/src/parsers.js +33 -111
- package/src/command-options.js +0 -55
- package/src/command-promise-handler.js +0 -16
- package/src/commands/accesslogs.js +0 -138
- package/src/commands/addon.js +0 -391
- package/src/commands/applications.js +0 -123
- package/src/commands/cancel-deploy.js +0 -19
- package/src/commands/config.js +0 -47
- package/src/commands/console.js +0 -20
- package/src/commands/create.js +0 -129
- package/src/commands/database.js +0 -73
- package/src/commands/delete.js +0 -24
- package/src/commands/deploy.js +0 -133
- package/src/commands/diag.js +0 -126
- package/src/commands/domain.js +0 -445
- package/src/commands/drain.js +0 -164
- package/src/commands/emails.js +0 -156
- package/src/commands/env.js +0 -124
- package/src/commands/features.js +0 -87
- package/src/commands/k8s.js +0 -193
- package/src/commands/keycloak.js +0 -138
- package/src/commands/kv.js +0 -93
- package/src/commands/link.js +0 -20
- package/src/commands/logout.js +0 -8
- package/src/commands/logs.js +0 -45
- package/src/commands/makeDefault.js +0 -11
- package/src/commands/matomo.js +0 -85
- package/src/commands/metabase.js +0 -112
- package/src/commands/ng.js +0 -202
- package/src/commands/notify-email.js +0 -99
- package/src/commands/open.js +0 -13
- package/src/commands/otoroshi.js +0 -150
- package/src/commands/profile.js +0 -55
- package/src/commands/published-config.js +0 -70
- package/src/commands/restart.js +0 -52
- package/src/commands/scale.js +0 -66
- package/src/commands/service.js +0 -105
- package/src/commands/ssh-keys.js +0 -144
- package/src/commands/ssh.js +0 -20
- package/src/commands/status.js +0 -115
- package/src/commands/stop.js +0 -12
- package/src/commands/tcp-redirs.js +0 -80
- package/src/commands/tokens.js +0 -144
- package/src/commands/unlink.js +0 -14
- package/src/commands/version.js +0 -6
- package/src/commands/webhooks.js +0 -74
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { EXPERIMENTAL_FEATURES } from '../../experimental-features.js';
|
|
2
|
+
import { defineCommand } from '../../lib/define-command.js';
|
|
3
|
+
import { Logger } from '../../logger.js';
|
|
4
|
+
import { setFeature } from '../../models/configuration.js';
|
|
5
|
+
import { featuresArg } from './features.args.js';
|
|
6
|
+
|
|
7
|
+
export const featuresEnableCommand = defineCommand({
|
|
8
|
+
description: 'Enable experimental features',
|
|
9
|
+
since: '3.11.0',
|
|
10
|
+
options: {},
|
|
11
|
+
args: [featuresArg],
|
|
12
|
+
async handler(_options, features) {
|
|
13
|
+
const availableFeatures = Object.keys(EXPERIMENTAL_FEATURES);
|
|
14
|
+
|
|
15
|
+
const unknownFeatures = features.filter((feature) => !availableFeatures.includes(feature));
|
|
16
|
+
if (unknownFeatures.length > 0) {
|
|
17
|
+
throw new Error(`Unavailable feature(s): ${unknownFeatures.join(', ')}`);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
for (const featureName of features) {
|
|
21
|
+
await setFeature(featureName, true);
|
|
22
|
+
Logger.println(`Experimental feature '${featureName}' enabled`);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
if (features.length === 1) {
|
|
26
|
+
Logger.println(EXPERIMENTAL_FEATURES[features[0]].instructions);
|
|
27
|
+
} else {
|
|
28
|
+
Logger.println();
|
|
29
|
+
Logger.println("To learn more about these experimental features, use 'clever features info FEATURE_NAME'");
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
});
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { EXPERIMENTAL_FEATURES } from '../../experimental-features.js';
|
|
3
|
+
import { defineArgument } from '../../lib/define-argument.js';
|
|
4
|
+
import { defineCommand } from '../../lib/define-command.js';
|
|
5
|
+
import { Logger } from '../../logger.js';
|
|
6
|
+
|
|
7
|
+
export const featuresInfoCommand = defineCommand({
|
|
8
|
+
description: 'Display info about an experimental feature',
|
|
9
|
+
since: '3.11.0',
|
|
10
|
+
options: {},
|
|
11
|
+
args: [
|
|
12
|
+
defineArgument({
|
|
13
|
+
schema: z.string(),
|
|
14
|
+
description: 'Experimental feature to manage',
|
|
15
|
+
placeholder: 'feature',
|
|
16
|
+
}),
|
|
17
|
+
],
|
|
18
|
+
async handler(_options, feature) {
|
|
19
|
+
const availableFeatures = Object.keys(EXPERIMENTAL_FEATURES);
|
|
20
|
+
|
|
21
|
+
if (!availableFeatures.includes(feature)) {
|
|
22
|
+
throw new Error(`Unavailable feature: ${feature}`);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
Logger.println(EXPERIMENTAL_FEATURES[feature].instructions);
|
|
26
|
+
},
|
|
27
|
+
});
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { EXPERIMENTAL_FEATURES } from '../../experimental-features.js';
|
|
2
|
+
import { formatTable } from '../../format-table.js';
|
|
3
|
+
import { defineCommand } from '../../lib/define-command.js';
|
|
4
|
+
import { Logger } from '../../logger.js';
|
|
5
|
+
import { getFeatures } from '../../models/configuration.js';
|
|
6
|
+
import { humanJsonOutputFormatOption } from '../global.options.js';
|
|
7
|
+
|
|
8
|
+
export const featuresListCommand = defineCommand({
|
|
9
|
+
description: 'List available experimental features',
|
|
10
|
+
since: '3.11.0',
|
|
11
|
+
options: {
|
|
12
|
+
format: humanJsonOutputFormatOption,
|
|
13
|
+
},
|
|
14
|
+
args: [],
|
|
15
|
+
async handler(options) {
|
|
16
|
+
const { format } = options;
|
|
17
|
+
|
|
18
|
+
const featuresConf = await getFeatures();
|
|
19
|
+
// Add status from configuration file and remove instructions
|
|
20
|
+
const features = Object.entries(EXPERIMENTAL_FEATURES).map(([id, feature]) => {
|
|
21
|
+
const enabled = featuresConf[id] === true;
|
|
22
|
+
return {
|
|
23
|
+
id,
|
|
24
|
+
status: feature.status,
|
|
25
|
+
description: feature.description,
|
|
26
|
+
enabled,
|
|
27
|
+
};
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
// For each feature, print the object with the id, status, description and enabled
|
|
31
|
+
switch (format) {
|
|
32
|
+
case 'json': {
|
|
33
|
+
Logger.printJson(features);
|
|
34
|
+
break;
|
|
35
|
+
}
|
|
36
|
+
case 'human':
|
|
37
|
+
default: {
|
|
38
|
+
const headers = ['ID', 'STATUS', 'DESCRIPTION', 'ENABLED'];
|
|
39
|
+
|
|
40
|
+
Logger.println(
|
|
41
|
+
formatTable([
|
|
42
|
+
headers,
|
|
43
|
+
...features.map((feature) => [feature.id, feature.status, feature.description, feature.enabled]),
|
|
44
|
+
]),
|
|
45
|
+
);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
});
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { defineArgument } from '../lib/define-argument.js';
|
|
3
|
+
import { addonIdOrName, appIdOrName } from '../parsers.js';
|
|
4
|
+
|
|
5
|
+
export const addonIdOrNameArg = defineArgument({
|
|
6
|
+
schema: z.string().transform(addonIdOrName),
|
|
7
|
+
description: 'Add-on ID (or name, if unambiguous)',
|
|
8
|
+
placeholder: 'addon-id|addon-name',
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
export const envVariableNameArg = defineArgument({
|
|
12
|
+
schema: z.string(),
|
|
13
|
+
description: 'Name of the environment variable',
|
|
14
|
+
placeholder: 'variable-name',
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
export const envVariableValueArg = defineArgument({
|
|
18
|
+
schema: z.string(),
|
|
19
|
+
description: 'Value of the environment variable',
|
|
20
|
+
placeholder: 'variable-value',
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
export const appIdOrNameArg = defineArgument({
|
|
24
|
+
schema: z.string().transform(appIdOrName),
|
|
25
|
+
description: 'Application ID (or name, if unambiguous)',
|
|
26
|
+
placeholder: 'app-id|app-name',
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
export const aliasArg = defineArgument({
|
|
30
|
+
schema: z.string(),
|
|
31
|
+
description: 'Application alias',
|
|
32
|
+
placeholder: 'app-alias',
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
export const notificationNameArg = defineArgument({
|
|
36
|
+
schema: z.string(),
|
|
37
|
+
description: 'Notification name',
|
|
38
|
+
placeholder: 'name',
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
export const notificationIdArg = defineArgument({
|
|
42
|
+
schema: z.string(),
|
|
43
|
+
description: 'Notification ID',
|
|
44
|
+
placeholder: 'notification-id',
|
|
45
|
+
});
|
|
@@ -0,0 +1,461 @@
|
|
|
1
|
+
import { accesslogsCommand } from './accesslogs/accesslogs.command.js';
|
|
2
|
+
import { activityCommand } from './activity/activity.command.js';
|
|
3
|
+
import { addonCommand } from './addon/addon.command.js';
|
|
4
|
+
import { addonCreateCommand } from './addon/addon.create.command.js';
|
|
5
|
+
import { addonDeleteCommand } from './addon/addon.delete.command.js';
|
|
6
|
+
import { addonEnvCommand } from './addon/addon.env.command.js';
|
|
7
|
+
import { addonListCommand } from './addon/addon.list.command.js';
|
|
8
|
+
import { addonProvidersCommand } from './addon/addon.providers.command.js';
|
|
9
|
+
import { addonProvidersShowCommand } from './addon/addon.providers.show.command.js';
|
|
10
|
+
import { addonRenameCommand } from './addon/addon.rename.command.js';
|
|
11
|
+
import { applicationsCommand } from './applications/applications.command.js';
|
|
12
|
+
import { applicationsListCommand } from './applications/applications.list.command.js';
|
|
13
|
+
import { cancelDeployCommand } from './cancel-deploy/cancel-deploy.command.js';
|
|
14
|
+
import { configCommand } from './config/config.command.js';
|
|
15
|
+
import { configGetCommand } from './config/config.get.command.js';
|
|
16
|
+
import { configSetCommand } from './config/config.set.command.js';
|
|
17
|
+
import { configUpdateCommand } from './config/config.update.command.js';
|
|
18
|
+
import { consoleCommand } from './console/console.command.js';
|
|
19
|
+
import { createCommand } from './create/create.command.js';
|
|
20
|
+
import { curlCommand } from './curl/curl.command.js';
|
|
21
|
+
import { databaseBackupsCommand } from './database/database.backups.command.js';
|
|
22
|
+
import { databaseBackupsDownloadCommand } from './database/database.backups.download.command.js';
|
|
23
|
+
import { databaseCommand } from './database/database.command.js';
|
|
24
|
+
import { deleteCommand } from './delete/delete.command.js';
|
|
25
|
+
import { deployCommand } from './deploy/deploy.command.js';
|
|
26
|
+
import { diagCommand } from './diag/diag.command.js';
|
|
27
|
+
import { domainAddCommand } from './domain/domain.add.command.js';
|
|
28
|
+
import { domainCommand } from './domain/domain.command.js';
|
|
29
|
+
import { domainDiagCommand } from './domain/domain.diag.command.js';
|
|
30
|
+
import { domainFavouriteCommand } from './domain/domain.favourite.command.js';
|
|
31
|
+
import { domainFavouriteSetCommand } from './domain/domain.favourite.set.command.js';
|
|
32
|
+
import { domainFavouriteUnsetCommand } from './domain/domain.favourite.unset.command.js';
|
|
33
|
+
import { domainOverviewCommand } from './domain/domain.overview.command.js';
|
|
34
|
+
import { domainRmCommand } from './domain/domain.rm.command.js';
|
|
35
|
+
import { drainCommand } from './drain/drain.command.js';
|
|
36
|
+
import { drainCreateCommand } from './drain/drain.create.command.js';
|
|
37
|
+
import { drainDisableCommand } from './drain/drain.disable.command.js';
|
|
38
|
+
import { drainEnableCommand } from './drain/drain.enable.command.js';
|
|
39
|
+
import { drainGetCommand } from './drain/drain.get.command.js';
|
|
40
|
+
import { drainRemoveCommand } from './drain/drain.remove.command.js';
|
|
41
|
+
import { emailsAddCommand } from './emails/emails.add.command.js';
|
|
42
|
+
import { emailsCommand } from './emails/emails.command.js';
|
|
43
|
+
import { emailsOpenCommand } from './emails/emails.open.command.js';
|
|
44
|
+
import { emailsPrimaryCommand } from './emails/emails.primary.command.js';
|
|
45
|
+
import { emailsRemoveAllCommand } from './emails/emails.remove-all.command.js';
|
|
46
|
+
import { emailsRemoveCommand } from './emails/emails.remove.command.js';
|
|
47
|
+
import { envCommand } from './env/env.command.js';
|
|
48
|
+
import { envImportVarsCommand } from './env/env.import-vars.command.js';
|
|
49
|
+
import { envImportCommand } from './env/env.import.command.js';
|
|
50
|
+
import { envRmCommand } from './env/env.rm.command.js';
|
|
51
|
+
import { envSetCommand } from './env/env.set.command.js';
|
|
52
|
+
import { featuresCommand } from './features/features.command.js';
|
|
53
|
+
import { featuresDisableCommand } from './features/features.disable.command.js';
|
|
54
|
+
import { featuresEnableCommand } from './features/features.enable.command.js';
|
|
55
|
+
import { featuresInfoCommand } from './features/features.info.command.js';
|
|
56
|
+
import { featuresListCommand } from './features/features.list.command.js';
|
|
57
|
+
import { helpCommand } from './help/help.command.js';
|
|
58
|
+
import { k8sAddPersistentStorageCommand } from './k8s/k8s.add-persistent-storage.command.js';
|
|
59
|
+
import { k8sCommand } from './k8s/k8s.command.js';
|
|
60
|
+
import { k8sCreateCommand } from './k8s/k8s.create.command.js';
|
|
61
|
+
import { k8sDeleteCommand } from './k8s/k8s.delete.command.js';
|
|
62
|
+
import { k8sGetKubeconfigCommand } from './k8s/k8s.get-kubeconfig.command.js';
|
|
63
|
+
import { k8sGetCommand } from './k8s/k8s.get.command.js';
|
|
64
|
+
import { k8sListCommand } from './k8s/k8s.list.command.js';
|
|
65
|
+
import { keycloakCommand } from './keycloak/keycloak.command.js';
|
|
66
|
+
import { keycloakDisableNgCommand } from './keycloak/keycloak.disable-ng.command.js';
|
|
67
|
+
import { keycloakEnableNgCommand } from './keycloak/keycloak.enable-ng.command.js';
|
|
68
|
+
import { keycloakGetCommand } from './keycloak/keycloak.get.command.js';
|
|
69
|
+
import { keycloakOpenCommand } from './keycloak/keycloak.open.command.js';
|
|
70
|
+
import { keycloakOpenLogsCommand } from './keycloak/keycloak.open.logs.command.js';
|
|
71
|
+
import { keycloakOpenWebuiCommand } from './keycloak/keycloak.open.webui.command.js';
|
|
72
|
+
import { keycloakRebuildCommand } from './keycloak/keycloak.rebuild.command.js';
|
|
73
|
+
import { keycloakRestartCommand } from './keycloak/keycloak.restart.command.js';
|
|
74
|
+
import { keycloakVersionCheckCommand } from './keycloak/keycloak.version.check.command.js';
|
|
75
|
+
import { keycloakVersionCommand } from './keycloak/keycloak.version.command.js';
|
|
76
|
+
import { keycloakVersionUpdateCommand } from './keycloak/keycloak.version.update.command.js';
|
|
77
|
+
import { kvCommand } from './kv/kv.command.js';
|
|
78
|
+
import { linkCommand } from './link/link.command.js';
|
|
79
|
+
import { loginCommand } from './login/login.command.js';
|
|
80
|
+
import { logoutCommand } from './logout/logout.command.js';
|
|
81
|
+
import { logsCommand } from './logs/logs.command.js';
|
|
82
|
+
import { makeDefaultCommand } from './make-default/make-default.command.js';
|
|
83
|
+
import { matomoCommand } from './matomo/matomo.command.js';
|
|
84
|
+
import { matomoGetCommand } from './matomo/matomo.get.command.js';
|
|
85
|
+
import { matomoOpenCommand } from './matomo/matomo.open.command.js';
|
|
86
|
+
import { matomoOpenLogsCommand } from './matomo/matomo.open.logs.command.js';
|
|
87
|
+
import { matomoOpenWebuiCommand } from './matomo/matomo.open.webui.command.js';
|
|
88
|
+
import { matomoRebuildCommand } from './matomo/matomo.rebuild.command.js';
|
|
89
|
+
import { matomoRestartCommand } from './matomo/matomo.restart.command.js';
|
|
90
|
+
import { metabaseCommand } from './metabase/metabase.command.js';
|
|
91
|
+
import { metabaseGetCommand } from './metabase/metabase.get.command.js';
|
|
92
|
+
import { metabaseOpenCommand } from './metabase/metabase.open.command.js';
|
|
93
|
+
import { metabaseOpenLogsCommand } from './metabase/metabase.open.logs.command.js';
|
|
94
|
+
import { metabaseOpenWebuiCommand } from './metabase/metabase.open.webui.command.js';
|
|
95
|
+
import { metabaseRebuildCommand } from './metabase/metabase.rebuild.command.js';
|
|
96
|
+
import { metabaseRestartCommand } from './metabase/metabase.restart.command.js';
|
|
97
|
+
import { metabaseVersionCheckCommand } from './metabase/metabase.version.check.command.js';
|
|
98
|
+
import { metabaseVersionCommand } from './metabase/metabase.version.command.js';
|
|
99
|
+
import { metabaseVersionUpdateCommand } from './metabase/metabase.version.update.command.js';
|
|
100
|
+
import { ngCommand } from './ng/ng.command.js';
|
|
101
|
+
import { ngCreateCommand } from './ng/ng.create.command.js';
|
|
102
|
+
import { ngCreateExternalCommand } from './ng/ng.create.external.command.js';
|
|
103
|
+
import { ngDeleteCommand } from './ng/ng.delete.command.js';
|
|
104
|
+
import { ngDeleteExternalCommand } from './ng/ng.delete.external.command.js';
|
|
105
|
+
import { ngGetConfigCommand } from './ng/ng.get-config.command.js';
|
|
106
|
+
import { ngGetCommand } from './ng/ng.get.command.js';
|
|
107
|
+
import { ngLinkCommand } from './ng/ng.link.command.js';
|
|
108
|
+
import { ngSearchCommand } from './ng/ng.search.command.js';
|
|
109
|
+
import { ngUnlinkCommand } from './ng/ng.unlink.command.js';
|
|
110
|
+
import { notifyEmailAddCommand } from './notify-email/notify-email.add.command.js';
|
|
111
|
+
import { notifyEmailCommand } from './notify-email/notify-email.command.js';
|
|
112
|
+
import { notifyEmailRemoveCommand } from './notify-email/notify-email.remove.command.js';
|
|
113
|
+
import { openCommand } from './open/open.command.js';
|
|
114
|
+
import { otoroshiCommand } from './otoroshi/otoroshi.command.js';
|
|
115
|
+
import { otoroshiDisableNgCommand } from './otoroshi/otoroshi.disable-ng.command.js';
|
|
116
|
+
import { otoroshiEnableNgCommand } from './otoroshi/otoroshi.enable-ng.command.js';
|
|
117
|
+
import { otoroshiGetConfigCommand } from './otoroshi/otoroshi.get-config.command.js';
|
|
118
|
+
import { otoroshiGetCommand } from './otoroshi/otoroshi.get.command.js';
|
|
119
|
+
import { otoroshiOpenCommand } from './otoroshi/otoroshi.open.command.js';
|
|
120
|
+
import { otoroshiOpenLogsCommand } from './otoroshi/otoroshi.open.logs.command.js';
|
|
121
|
+
import { otoroshiOpenWebuiCommand } from './otoroshi/otoroshi.open.webui.command.js';
|
|
122
|
+
import { otoroshiRebuildCommand } from './otoroshi/otoroshi.rebuild.command.js';
|
|
123
|
+
import { otoroshiRestartCommand } from './otoroshi/otoroshi.restart.command.js';
|
|
124
|
+
import { otoroshiVersionCheckCommand } from './otoroshi/otoroshi.version.check.command.js';
|
|
125
|
+
import { otoroshiVersionCommand } from './otoroshi/otoroshi.version.command.js';
|
|
126
|
+
import { otoroshiVersionUpdateCommand } from './otoroshi/otoroshi.version.update.command.js';
|
|
127
|
+
import { profileCommand } from './profile/profile.command.js';
|
|
128
|
+
import { profileOpenCommand } from './profile/profile.open.command.js';
|
|
129
|
+
import { publishedConfigCommand } from './published-config/published-config.command.js';
|
|
130
|
+
import { publishedConfigImportCommand } from './published-config/published-config.import.command.js';
|
|
131
|
+
import { publishedConfigRmCommand } from './published-config/published-config.rm.command.js';
|
|
132
|
+
import { publishedConfigSetCommand } from './published-config/published-config.set.command.js';
|
|
133
|
+
import { restartCommand } from './restart/restart.command.js';
|
|
134
|
+
import { scaleCommand } from './scale/scale.command.js';
|
|
135
|
+
import { serviceCommand } from './service/service.command.js';
|
|
136
|
+
import { serviceLinkAddonCommand } from './service/service.link-addon.command.js';
|
|
137
|
+
import { serviceLinkAppCommand } from './service/service.link-app.command.js';
|
|
138
|
+
import { serviceUnlinkAddonCommand } from './service/service.unlink-addon.command.js';
|
|
139
|
+
import { serviceUnlinkAppCommand } from './service/service.unlink-app.command.js';
|
|
140
|
+
import { sshKeysAddCommand } from './ssh-keys/ssh-keys.add.command.js';
|
|
141
|
+
import { sshKeysCommand } from './ssh-keys/ssh-keys.command.js';
|
|
142
|
+
import { sshKeysOpenCommand } from './ssh-keys/ssh-keys.open.command.js';
|
|
143
|
+
import { sshKeysRemoveAllCommand } from './ssh-keys/ssh-keys.remove-all.command.js';
|
|
144
|
+
import { sshKeysRemoveCommand } from './ssh-keys/ssh-keys.remove.command.js';
|
|
145
|
+
import { sshCommand } from './ssh/ssh.command.js';
|
|
146
|
+
import { statusCommand } from './status/status.command.js';
|
|
147
|
+
import { stopCommand } from './stop/stop.command.js';
|
|
148
|
+
import { tcpRedirsAddCommand } from './tcp-redirs/tcp-redirs.add.command.js';
|
|
149
|
+
import { tcpRedirsCommand } from './tcp-redirs/tcp-redirs.command.js';
|
|
150
|
+
import { tcpRedirsListNamespacesCommand } from './tcp-redirs/tcp-redirs.list-namespaces.command.js';
|
|
151
|
+
import { tcpRedirsRemoveCommand } from './tcp-redirs/tcp-redirs.remove.command.js';
|
|
152
|
+
import { tokensCommand } from './tokens/tokens.command.js';
|
|
153
|
+
import { tokensCreateCommand } from './tokens/tokens.create.command.js';
|
|
154
|
+
import { tokensRevokeCommand } from './tokens/tokens.revoke.command.js';
|
|
155
|
+
import { unlinkCommand } from './unlink/unlink.command.js';
|
|
156
|
+
import { versionCommand } from './version/version.command.js';
|
|
157
|
+
import { webhooksAddCommand } from './webhooks/webhooks.add.command.js';
|
|
158
|
+
import { webhooksCommand } from './webhooks/webhooks.command.js';
|
|
159
|
+
import { webhooksRemoveCommand } from './webhooks/webhooks.remove.command.js';
|
|
160
|
+
|
|
161
|
+
export const globalCommands = {
|
|
162
|
+
accesslogs: accesslogsCommand,
|
|
163
|
+
activity: activityCommand,
|
|
164
|
+
addon: [
|
|
165
|
+
addonCommand,
|
|
166
|
+
{
|
|
167
|
+
create: addonCreateCommand,
|
|
168
|
+
delete: addonDeleteCommand,
|
|
169
|
+
env: addonEnvCommand,
|
|
170
|
+
list: addonListCommand,
|
|
171
|
+
providers: [
|
|
172
|
+
addonProvidersCommand,
|
|
173
|
+
{
|
|
174
|
+
show: addonProvidersShowCommand,
|
|
175
|
+
},
|
|
176
|
+
],
|
|
177
|
+
rename: addonRenameCommand,
|
|
178
|
+
},
|
|
179
|
+
],
|
|
180
|
+
applications: [
|
|
181
|
+
applicationsCommand,
|
|
182
|
+
{
|
|
183
|
+
list: applicationsListCommand,
|
|
184
|
+
},
|
|
185
|
+
],
|
|
186
|
+
'cancel-deploy': cancelDeployCommand,
|
|
187
|
+
config: [
|
|
188
|
+
configCommand,
|
|
189
|
+
{
|
|
190
|
+
get: configGetCommand,
|
|
191
|
+
set: configSetCommand,
|
|
192
|
+
update: configUpdateCommand,
|
|
193
|
+
},
|
|
194
|
+
],
|
|
195
|
+
console: consoleCommand,
|
|
196
|
+
create: createCommand,
|
|
197
|
+
curl: curlCommand,
|
|
198
|
+
database: [
|
|
199
|
+
databaseCommand,
|
|
200
|
+
{
|
|
201
|
+
backups: [
|
|
202
|
+
databaseBackupsCommand,
|
|
203
|
+
{
|
|
204
|
+
download: databaseBackupsDownloadCommand,
|
|
205
|
+
},
|
|
206
|
+
],
|
|
207
|
+
},
|
|
208
|
+
],
|
|
209
|
+
delete: deleteCommand,
|
|
210
|
+
deploy: deployCommand,
|
|
211
|
+
diag: diagCommand,
|
|
212
|
+
domain: [
|
|
213
|
+
domainCommand,
|
|
214
|
+
{
|
|
215
|
+
add: domainAddCommand,
|
|
216
|
+
diag: domainDiagCommand,
|
|
217
|
+
favourite: [
|
|
218
|
+
domainFavouriteCommand,
|
|
219
|
+
{
|
|
220
|
+
set: domainFavouriteSetCommand,
|
|
221
|
+
unset: domainFavouriteUnsetCommand,
|
|
222
|
+
},
|
|
223
|
+
],
|
|
224
|
+
overview: domainOverviewCommand,
|
|
225
|
+
rm: domainRmCommand,
|
|
226
|
+
},
|
|
227
|
+
],
|
|
228
|
+
drain: [
|
|
229
|
+
drainCommand,
|
|
230
|
+
{
|
|
231
|
+
create: drainCreateCommand,
|
|
232
|
+
disable: drainDisableCommand,
|
|
233
|
+
enable: drainEnableCommand,
|
|
234
|
+
get: drainGetCommand,
|
|
235
|
+
remove: drainRemoveCommand,
|
|
236
|
+
},
|
|
237
|
+
],
|
|
238
|
+
emails: [
|
|
239
|
+
emailsCommand,
|
|
240
|
+
{
|
|
241
|
+
add: emailsAddCommand,
|
|
242
|
+
open: emailsOpenCommand,
|
|
243
|
+
primary: emailsPrimaryCommand,
|
|
244
|
+
remove: emailsRemoveCommand,
|
|
245
|
+
'remove-all': emailsRemoveAllCommand,
|
|
246
|
+
},
|
|
247
|
+
],
|
|
248
|
+
env: [
|
|
249
|
+
envCommand,
|
|
250
|
+
{
|
|
251
|
+
import: envImportCommand,
|
|
252
|
+
'import-vars': envImportVarsCommand,
|
|
253
|
+
rm: envRmCommand,
|
|
254
|
+
set: envSetCommand,
|
|
255
|
+
},
|
|
256
|
+
],
|
|
257
|
+
features: [
|
|
258
|
+
featuresCommand,
|
|
259
|
+
{
|
|
260
|
+
disable: featuresDisableCommand,
|
|
261
|
+
enable: featuresEnableCommand,
|
|
262
|
+
info: featuresInfoCommand,
|
|
263
|
+
list: featuresListCommand,
|
|
264
|
+
},
|
|
265
|
+
],
|
|
266
|
+
help: helpCommand,
|
|
267
|
+
k8s: [
|
|
268
|
+
k8sCommand,
|
|
269
|
+
{
|
|
270
|
+
'add-persistent-storage': k8sAddPersistentStorageCommand,
|
|
271
|
+
create: k8sCreateCommand,
|
|
272
|
+
delete: k8sDeleteCommand,
|
|
273
|
+
get: k8sGetCommand,
|
|
274
|
+
'get-kubeconfig': k8sGetKubeconfigCommand,
|
|
275
|
+
list: k8sListCommand,
|
|
276
|
+
},
|
|
277
|
+
],
|
|
278
|
+
keycloak: [
|
|
279
|
+
keycloakCommand,
|
|
280
|
+
{
|
|
281
|
+
'disable-ng': keycloakDisableNgCommand,
|
|
282
|
+
'enable-ng': keycloakEnableNgCommand,
|
|
283
|
+
get: keycloakGetCommand,
|
|
284
|
+
open: [
|
|
285
|
+
keycloakOpenCommand,
|
|
286
|
+
{
|
|
287
|
+
logs: keycloakOpenLogsCommand,
|
|
288
|
+
webui: keycloakOpenWebuiCommand,
|
|
289
|
+
},
|
|
290
|
+
],
|
|
291
|
+
rebuild: keycloakRebuildCommand,
|
|
292
|
+
restart: keycloakRestartCommand,
|
|
293
|
+
version: [
|
|
294
|
+
keycloakVersionCommand,
|
|
295
|
+
{
|
|
296
|
+
check: keycloakVersionCheckCommand,
|
|
297
|
+
update: keycloakVersionUpdateCommand,
|
|
298
|
+
},
|
|
299
|
+
],
|
|
300
|
+
},
|
|
301
|
+
],
|
|
302
|
+
kv: kvCommand,
|
|
303
|
+
link: linkCommand,
|
|
304
|
+
login: loginCommand,
|
|
305
|
+
logout: logoutCommand,
|
|
306
|
+
logs: logsCommand,
|
|
307
|
+
'make-default': makeDefaultCommand,
|
|
308
|
+
matomo: [
|
|
309
|
+
matomoCommand,
|
|
310
|
+
{
|
|
311
|
+
get: matomoGetCommand,
|
|
312
|
+
open: [
|
|
313
|
+
matomoOpenCommand,
|
|
314
|
+
{
|
|
315
|
+
logs: matomoOpenLogsCommand,
|
|
316
|
+
webui: matomoOpenWebuiCommand,
|
|
317
|
+
},
|
|
318
|
+
],
|
|
319
|
+
rebuild: matomoRebuildCommand,
|
|
320
|
+
restart: matomoRestartCommand,
|
|
321
|
+
},
|
|
322
|
+
],
|
|
323
|
+
metabase: [
|
|
324
|
+
metabaseCommand,
|
|
325
|
+
{
|
|
326
|
+
get: metabaseGetCommand,
|
|
327
|
+
open: [
|
|
328
|
+
metabaseOpenCommand,
|
|
329
|
+
{
|
|
330
|
+
logs: metabaseOpenLogsCommand,
|
|
331
|
+
webui: metabaseOpenWebuiCommand,
|
|
332
|
+
},
|
|
333
|
+
],
|
|
334
|
+
rebuild: metabaseRebuildCommand,
|
|
335
|
+
restart: metabaseRestartCommand,
|
|
336
|
+
version: [
|
|
337
|
+
metabaseVersionCommand,
|
|
338
|
+
{
|
|
339
|
+
check: metabaseVersionCheckCommand,
|
|
340
|
+
update: metabaseVersionUpdateCommand,
|
|
341
|
+
},
|
|
342
|
+
],
|
|
343
|
+
},
|
|
344
|
+
],
|
|
345
|
+
ng: [
|
|
346
|
+
ngCommand,
|
|
347
|
+
{
|
|
348
|
+
create: [
|
|
349
|
+
ngCreateCommand,
|
|
350
|
+
{
|
|
351
|
+
external: ngCreateExternalCommand,
|
|
352
|
+
},
|
|
353
|
+
],
|
|
354
|
+
delete: [
|
|
355
|
+
ngDeleteCommand,
|
|
356
|
+
{
|
|
357
|
+
external: ngDeleteExternalCommand,
|
|
358
|
+
},
|
|
359
|
+
],
|
|
360
|
+
get: ngGetCommand,
|
|
361
|
+
'get-config': ngGetConfigCommand,
|
|
362
|
+
link: ngLinkCommand,
|
|
363
|
+
search: ngSearchCommand,
|
|
364
|
+
unlink: ngUnlinkCommand,
|
|
365
|
+
},
|
|
366
|
+
],
|
|
367
|
+
'notify-email': [
|
|
368
|
+
notifyEmailCommand,
|
|
369
|
+
{
|
|
370
|
+
add: notifyEmailAddCommand,
|
|
371
|
+
remove: notifyEmailRemoveCommand,
|
|
372
|
+
},
|
|
373
|
+
],
|
|
374
|
+
open: openCommand,
|
|
375
|
+
otoroshi: [
|
|
376
|
+
otoroshiCommand,
|
|
377
|
+
{
|
|
378
|
+
'disable-ng': otoroshiDisableNgCommand,
|
|
379
|
+
'enable-ng': otoroshiEnableNgCommand,
|
|
380
|
+
get: otoroshiGetCommand,
|
|
381
|
+
'get-config': otoroshiGetConfigCommand,
|
|
382
|
+
open: [
|
|
383
|
+
otoroshiOpenCommand,
|
|
384
|
+
{
|
|
385
|
+
logs: otoroshiOpenLogsCommand,
|
|
386
|
+
webui: otoroshiOpenWebuiCommand,
|
|
387
|
+
},
|
|
388
|
+
],
|
|
389
|
+
rebuild: otoroshiRebuildCommand,
|
|
390
|
+
restart: otoroshiRestartCommand,
|
|
391
|
+
version: [
|
|
392
|
+
otoroshiVersionCommand,
|
|
393
|
+
{
|
|
394
|
+
check: otoroshiVersionCheckCommand,
|
|
395
|
+
update: otoroshiVersionUpdateCommand,
|
|
396
|
+
},
|
|
397
|
+
],
|
|
398
|
+
},
|
|
399
|
+
],
|
|
400
|
+
profile: [
|
|
401
|
+
profileCommand,
|
|
402
|
+
{
|
|
403
|
+
open: profileOpenCommand,
|
|
404
|
+
},
|
|
405
|
+
],
|
|
406
|
+
'published-config': [
|
|
407
|
+
publishedConfigCommand,
|
|
408
|
+
{
|
|
409
|
+
import: publishedConfigImportCommand,
|
|
410
|
+
rm: publishedConfigRmCommand,
|
|
411
|
+
set: publishedConfigSetCommand,
|
|
412
|
+
},
|
|
413
|
+
],
|
|
414
|
+
restart: restartCommand,
|
|
415
|
+
scale: scaleCommand,
|
|
416
|
+
service: [
|
|
417
|
+
serviceCommand,
|
|
418
|
+
{
|
|
419
|
+
'link-addon': serviceLinkAddonCommand,
|
|
420
|
+
'link-app': serviceLinkAppCommand,
|
|
421
|
+
'unlink-addon': serviceUnlinkAddonCommand,
|
|
422
|
+
'unlink-app': serviceUnlinkAppCommand,
|
|
423
|
+
},
|
|
424
|
+
],
|
|
425
|
+
ssh: sshCommand,
|
|
426
|
+
'ssh-keys': [
|
|
427
|
+
sshKeysCommand,
|
|
428
|
+
{
|
|
429
|
+
add: sshKeysAddCommand,
|
|
430
|
+
open: sshKeysOpenCommand,
|
|
431
|
+
remove: sshKeysRemoveCommand,
|
|
432
|
+
'remove-all': sshKeysRemoveAllCommand,
|
|
433
|
+
},
|
|
434
|
+
],
|
|
435
|
+
status: statusCommand,
|
|
436
|
+
stop: stopCommand,
|
|
437
|
+
'tcp-redirs': [
|
|
438
|
+
tcpRedirsCommand,
|
|
439
|
+
{
|
|
440
|
+
add: tcpRedirsAddCommand,
|
|
441
|
+
'list-namespaces': tcpRedirsListNamespacesCommand,
|
|
442
|
+
remove: tcpRedirsRemoveCommand,
|
|
443
|
+
},
|
|
444
|
+
],
|
|
445
|
+
tokens: [
|
|
446
|
+
tokensCommand,
|
|
447
|
+
{
|
|
448
|
+
create: tokensCreateCommand,
|
|
449
|
+
revoke: tokensRevokeCommand,
|
|
450
|
+
},
|
|
451
|
+
],
|
|
452
|
+
unlink: unlinkCommand,
|
|
453
|
+
version: versionCommand,
|
|
454
|
+
webhooks: [
|
|
455
|
+
webhooksCommand,
|
|
456
|
+
{
|
|
457
|
+
add: webhooksAddCommand,
|
|
458
|
+
remove: webhooksRemoveCommand,
|
|
459
|
+
},
|
|
460
|
+
],
|
|
461
|
+
};
|