@axway/axway-central-cli 4.10.0-rc.3 → 4.10.0-rc.4
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/package.json +1 -1
- package/src/cli.ts +0 -65
- package/src/commands/apply/index.spec.ts +0 -756
- package/src/commands/apply/index.ts +0 -106
- package/src/commands/completion/index.ts +0 -91
- package/src/commands/config/common/index.ts +0 -21
- package/src/commands/config/index.ts +0 -15
- package/src/commands/config/list.spec.ts +0 -57
- package/src/commands/config/list.ts +0 -18
- package/src/commands/config/set.spec.ts +0 -242
- package/src/commands/config/set.ts +0 -102
- package/src/commands/config/unset.spec.ts +0 -74
- package/src/commands/config/unset.ts +0 -40
- package/src/commands/create/agentResource.spec.ts +0 -210
- package/src/commands/create/agentResource.ts +0 -154
- package/src/commands/create/environment.spec.ts +0 -104
- package/src/commands/create/environment.ts +0 -52
- package/src/commands/create/index.spec.ts +0 -489
- package/src/commands/create/index.ts +0 -101
- package/src/commands/create/serviceAccount.spec.ts +0 -33
- package/src/commands/create/serviceAccount.ts +0 -19
- package/src/commands/delete/index.spec.ts +0 -650
- package/src/commands/delete/index.ts +0 -196
- package/src/commands/edit/environment.spec.ts +0 -186
- package/src/commands/edit/environment.ts +0 -79
- package/src/commands/edit/index.ts +0 -25
- package/src/commands/get/index.spec.ts +0 -1257
- package/src/commands/get/index.ts +0 -305
- package/src/commands/install/agent.spec.ts +0 -592
- package/src/commands/install/agents.ts +0 -385
- package/src/commands/install/akamaiAgents.spec.ts +0 -511
- package/src/commands/install/akamaiAgents.ts +0 -334
- package/src/commands/install/akamaiSaasAgents.spec.ts +0 -265
- package/src/commands/install/akamaiSaasAgents.ts +0 -376
- package/src/commands/install/apigeexAgents.spec.ts +0 -339
- package/src/commands/install/apigeexAgents.ts +0 -277
- package/src/commands/install/apigeexSaasAgents.spec.ts +0 -359
- package/src/commands/install/apigeexSaasAgents.ts +0 -428
- package/src/commands/install/awsAgents.spec.ts +0 -1203
- package/src/commands/install/awsAgents.ts +0 -611
- package/src/commands/install/awsSaasAgents.spec.ts +0 -741
- package/src/commands/install/awsSaasAgents.ts +0 -739
- package/src/commands/install/azureAgents.spec.ts +0 -636
- package/src/commands/install/azureAgents.ts +0 -310
- package/src/commands/install/azureSaasAgents.spec.ts +0 -743
- package/src/commands/install/azureSaasAgents.ts +0 -783
- package/src/commands/install/backstageAgents.spec.ts +0 -299
- package/src/commands/install/backstageAgents.ts +0 -207
- package/src/commands/install/edgeAgents.spec.ts +0 -1139
- package/src/commands/install/edgeAgents.ts +0 -524
- package/src/commands/install/gitHubSaasAgents.spec.ts +0 -360
- package/src/commands/install/gitHubSaasAgents.ts +0 -408
- package/src/commands/install/gitLabAgents.spec.ts +0 -236
- package/src/commands/install/gitLabAgents.ts +0 -221
- package/src/commands/install/graylogAgent.ts +0 -203
- package/src/commands/install/graylogAgents.spec.ts +0 -381
- package/src/commands/install/helpers/creators.spec.ts +0 -46
- package/src/commands/install/helpers/creators.ts +0 -434
- package/src/commands/install/helpers/deleters.ts +0 -38
- package/src/commands/install/helpers/getters.spec.ts +0 -38
- package/src/commands/install/helpers/getters.ts +0 -111
- package/src/commands/install/helpers/index.ts +0 -65
- package/src/commands/install/helpers/inputs.spec.ts +0 -78
- package/src/commands/install/helpers/inputs.ts +0 -699
- package/src/commands/install/helpers/regex.ts +0 -74
- package/src/commands/install/helpers/templates/akamaiTemplates.ts +0 -109
- package/src/commands/install/helpers/templates/apigeexTemplates.ts +0 -99
- package/src/commands/install/helpers/templates/awsTemplates.ts +0 -124
- package/src/commands/install/helpers/templates/azureTemplates.ts +0 -115
- package/src/commands/install/helpers/templates/backstageTemplates.ts +0 -87
- package/src/commands/install/helpers/templates/edgeTemplates.ts +0 -345
- package/src/commands/install/helpers/templates/gitLabTemplates.ts +0 -60
- package/src/commands/install/helpers/templates/graylogTemplates.ts +0 -63
- package/src/commands/install/helpers/templates/ibmAPIConnectTemplates.ts +0 -106
- package/src/commands/install/helpers/templates/istioTemplates.ts +0 -204
- package/src/commands/install/helpers/templates/kafkaTemplates.ts +0 -184
- package/src/commands/install/helpers/templates/sapApiPortalTemplates.ts +0 -104
- package/src/commands/install/helpers/templates/sensediaTemplates.ts +0 -108
- package/src/commands/install/helpers/templates/softwareAGWebMethodsTemplates.ts +0 -86
- package/src/commands/install/helpers/templates/traceableTemplates.ts +0 -123
- package/src/commands/install/helpers/templates/wso2Templates.ts +0 -75
- package/src/commands/install/helpers/util.ts +0 -45
- package/src/commands/install/ibmAPIConnectAgents.spec.ts +0 -539
- package/src/commands/install/ibmAPIConnectAgents.ts +0 -259
- package/src/commands/install/index.ts +0 -30
- package/src/commands/install/istioAgents.spec.ts +0 -1086
- package/src/commands/install/istioAgents.ts +0 -471
- package/src/commands/install/kafkaAgents.spec.ts +0 -707
- package/src/commands/install/kafkaAgents.ts +0 -358
- package/src/commands/install/platform.ts +0 -296
- package/src/commands/install/sapApiPortalAgents.spec.ts +0 -318
- package/src/commands/install/sapApiPortalAgents.ts +0 -248
- package/src/commands/install/sensediaAgents.spec.ts +0 -364
- package/src/commands/install/sensediaAgents.ts +0 -270
- package/src/commands/install/softwareAGWebMethodsAgents.spec.ts +0 -503
- package/src/commands/install/softwareAGWebMethodsAgents.ts +0 -191
- package/src/commands/install/swaggerHubSaasAgents.spec.ts +0 -351
- package/src/commands/install/swaggerHubSaasAgents.ts +0 -358
- package/src/commands/install/traceableAgents.spec.ts +0 -505
- package/src/commands/install/traceableAgents.ts +0 -323
- package/src/commands/install/traceableSaasAgents.spec.ts +0 -289
- package/src/commands/install/traceableSaasAgents.ts +0 -388
- package/src/commands/install/wso2Agents.spec.ts +0 -275
- package/src/commands/install/wso2Agents.ts +0 -197
- package/src/commands/productize/helpers/productizationHelper.ts +0 -466
- package/src/commands/productize/index.spec.ts +0 -367
- package/src/commands/productize/index.ts +0 -87
- package/src/common/ApiServerClient.spec.ts +0 -176
- package/src/common/ApiServerClient.ts +0 -1341
- package/src/common/CacheController.spec.ts +0 -207
- package/src/common/CacheController.ts +0 -162
- package/src/common/CliConfigManager.spec.ts +0 -83
- package/src/common/CliConfigManager.ts +0 -84
- package/src/common/CompositeError.spec.ts +0 -137
- package/src/common/CompositeError.ts +0 -94
- package/src/common/CoreConfigController.spec.ts +0 -107
- package/src/common/CoreConfigController.ts +0 -272
- package/src/common/DefinitionsManager.spec.ts +0 -267
- package/src/common/DefinitionsManager.ts +0 -328
- package/src/common/Kubectl.ts +0 -72
- package/src/common/PlatformClient.ts +0 -144
- package/src/common/Renderer.spec.ts +0 -141
- package/src/common/Renderer.ts +0 -426
- package/src/common/TmpFile.spec.ts +0 -85
- package/src/common/TmpFile.ts +0 -77
- package/src/common/bashCommands.ts +0 -88
- package/src/common/basicPrompts.spec.ts +0 -200
- package/src/common/basicPrompts.ts +0 -186
- package/src/common/dataService.spec.ts +0 -74
- package/src/common/dataService.ts +0 -330
- package/src/common/errorHandler.ts +0 -45
- package/src/common/kubectl.spec.ts +0 -72
- package/src/common/modules.d.ts +0 -6
- package/src/common/resultRenderers.spec.ts +0 -26
- package/src/common/resultsRenderers.ts +0 -169
- package/src/common/types.ts +0 -881
- package/src/common/utils.spec.ts +0 -200
- package/src/common/utils.ts +0 -530
- package/src/main.ts +0 -6
package/package.json
CHANGED
package/src/cli.ts
DELETED
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import CLI from 'cli-kit';
|
|
2
|
-
import dayjs from 'dayjs';
|
|
3
|
-
import relativeTime from 'dayjs/plugin/relativeTime';
|
|
4
|
-
import { existsSync, outputJsonSync, readJsonSync } from 'fs-extra';
|
|
5
|
-
import { apply } from './commands/apply';
|
|
6
|
-
import { completion } from './commands/completion';
|
|
7
|
-
import { config } from './commands/config';
|
|
8
|
-
import { create } from './commands/create';
|
|
9
|
-
import { deleteCmd } from './commands/delete';
|
|
10
|
-
import { edit } from './commands/edit';
|
|
11
|
-
import { get } from './commands/get';
|
|
12
|
-
import { install } from './commands/install';
|
|
13
|
-
import { configFile, hbsCompare } from './common/utils';
|
|
14
|
-
import { productize } from './commands/productize';
|
|
15
|
-
|
|
16
|
-
dayjs.extend(relativeTime);
|
|
17
|
-
require('tls').DEFAULT_ECDH_CURVE = 'auto';
|
|
18
|
-
hbsCompare();
|
|
19
|
-
|
|
20
|
-
const { version } = require('../package.json');
|
|
21
|
-
|
|
22
|
-
// Create the configFile if it doesn't exist yet and read all extensions on load
|
|
23
|
-
if (!existsSync(configFile)) {
|
|
24
|
-
outputJsonSync(configFile, {});
|
|
25
|
-
}
|
|
26
|
-
const extensions = [...Object.values(readJsonSync(configFile).extensions || {})];
|
|
27
|
-
|
|
28
|
-
// cliParams export only needed for "completion" command and its testing
|
|
29
|
-
export const cliParams = {
|
|
30
|
-
title: 'Axway Engage CLI',
|
|
31
|
-
name: 'engage',
|
|
32
|
-
banner: '',
|
|
33
|
-
version,
|
|
34
|
-
commands: {
|
|
35
|
-
completion,
|
|
36
|
-
apply,
|
|
37
|
-
config,
|
|
38
|
-
create,
|
|
39
|
-
delete: deleteCmd,
|
|
40
|
-
edit,
|
|
41
|
-
get,
|
|
42
|
-
install,
|
|
43
|
-
productize,
|
|
44
|
-
},
|
|
45
|
-
extensions,
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
export default new CLI({
|
|
49
|
-
title: 'Axway Central CLI',
|
|
50
|
-
name: 'central',
|
|
51
|
-
banner: '',
|
|
52
|
-
version,
|
|
53
|
-
commands: {
|
|
54
|
-
completion,
|
|
55
|
-
apply,
|
|
56
|
-
config,
|
|
57
|
-
create,
|
|
58
|
-
delete: deleteCmd,
|
|
59
|
-
edit,
|
|
60
|
-
get,
|
|
61
|
-
install,
|
|
62
|
-
productize,
|
|
63
|
-
},
|
|
64
|
-
extensions,
|
|
65
|
-
});
|