@codiac.io/codiac-cli 1.2.256 → 1.2.257

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.
Files changed (214) hide show
  1. package/README.md +1 -1
  2. package/dist/apis/codiac-api/gen/contracts.d.ts +5 -1
  3. package/dist/apis/codiac-api/gen/contracts.js +3 -0
  4. package/dist/apis/codiac-api/gen/contracts.js.map +1 -1
  5. package/dist/apis/codiac-relay/gen/client.d.ts +5 -1
  6. package/dist/apis/codiac-relay/gen/client.js +28 -0
  7. package/dist/apis/codiac-relay/gen/client.js.map +1 -1
  8. package/dist/apis/codiac-relay/gen/contracts.d.ts +19 -6
  9. package/dist/apis/codiac-relay/gen/contracts.js +1 -0
  10. package/dist/apis/codiac-relay/gen/contracts.js.map +1 -1
  11. package/dist/cli-common/argument-manager.d.ts +1 -1
  12. package/dist/cli-common/built-in-cli-user-input.d.ts +3 -2
  13. package/dist/cli-common/built-in-cli-user-input.js +3 -1
  14. package/dist/cli-common/built-in-cli-user-input.js.map +1 -1
  15. package/dist/cli-common/command-base.d.ts +1 -2
  16. package/dist/cli-common/command-base.js +13 -11
  17. package/dist/cli-common/command-base.js.map +1 -1
  18. package/dist/cli-common/entities/prompt-choice.d.ts +6 -2
  19. package/dist/cli-common/mock-ui.d.ts +2 -2
  20. package/dist/cli-common/mock-ui.js.map +1 -1
  21. package/dist/cli-common/prompt-select-fuzzy.d.ts +4 -5
  22. package/dist/cli-common/prompt-select-fuzzy.js +11 -9
  23. package/dist/cli-common/prompt-select-fuzzy.js.map +1 -1
  24. package/dist/cli-common/test/tenant-contextualizer.spec.js +2 -2
  25. package/dist/command-base-enterprise.d.ts +3 -3
  26. package/dist/command-base-enterprise.js +38 -22
  27. package/dist/command-base-enterprise.js.map +1 -1
  28. package/dist/command-base-exec.js.map +1 -1
  29. package/dist/command-base-tenantless.js +2 -2
  30. package/dist/command-base-tenantless.js.map +1 -1
  31. package/dist/commands/asset/create.d.ts +16 -1
  32. package/dist/commands/asset/create.js +239 -85
  33. package/dist/commands/asset/create.js.map +1 -1
  34. package/dist/commands/asset/deploy.d.ts +0 -4
  35. package/dist/commands/asset/deploy.js +3 -15
  36. package/dist/commands/asset/deploy.js.map +1 -1
  37. package/dist/commands/asset/destroy.js +3 -3
  38. package/dist/commands/asset/destroy.js.map +1 -1
  39. package/dist/commands/asset/recycle.js +5 -5
  40. package/dist/commands/asset/recycle.js.map +1 -1
  41. package/dist/commands/asset/view.d.ts +9 -6
  42. package/dist/commands/asset/view.js +220 -127
  43. package/dist/commands/asset/view.js.map +1 -1
  44. package/dist/commands/cabinet/create.js +20 -21
  45. package/dist/commands/cabinet/create.js.map +1 -1
  46. package/dist/commands/cabinet/obliterate.js +1 -1
  47. package/dist/commands/cabinet/obliterate.js.map +1 -1
  48. package/dist/commands/config/add.js +47 -24
  49. package/dist/commands/config/add.js.map +1 -1
  50. package/dist/commands/config/delete.js +8 -7
  51. package/dist/commands/config/delete.js.map +1 -1
  52. package/dist/commands/config/deploy.d.ts +2 -2
  53. package/dist/commands/config/deploy.js +121 -64
  54. package/dist/commands/config/deploy.js.map +1 -1
  55. package/dist/commands/config/import.d.ts +19 -5
  56. package/dist/commands/config/import.js +112 -52
  57. package/dist/commands/config/import.js.map +1 -1
  58. package/dist/commands/config/settings/get.js +7 -6
  59. package/dist/commands/config/settings/get.js.map +1 -1
  60. package/dist/commands/config/view.js +11 -4
  61. package/dist/commands/config/view.js.map +1 -1
  62. package/dist/commands/csp/login.js +3 -3
  63. package/dist/commands/csp/login.js.map +1 -1
  64. package/dist/commands/dep/list.js +2 -1
  65. package/dist/commands/dep/list.js.map +1 -1
  66. package/dist/commands/deploy.js +2 -2
  67. package/dist/commands/deploy.js.map +1 -1
  68. package/dist/commands/env/add.d.ts +1 -1
  69. package/dist/commands/env/add.js +12 -12
  70. package/dist/commands/env/add.js.map +1 -1
  71. package/dist/commands/filestore/capture.js +22 -4
  72. package/dist/commands/filestore/capture.js.map +1 -1
  73. package/dist/commands/host/list.d.ts +30 -0
  74. package/dist/commands/host/list.js +106 -0
  75. package/dist/commands/host/list.js.map +1 -0
  76. package/dist/commands/host/map.js +7 -1
  77. package/dist/commands/host/map.js.map +1 -1
  78. package/dist/commands/host/view.d.ts +31 -0
  79. package/dist/commands/host/view.js +111 -0
  80. package/dist/commands/host/view.js.map +1 -0
  81. package/dist/commands/init.js +1 -2
  82. package/dist/commands/init.js.map +1 -1
  83. package/dist/commands/kit/create.js +1 -1
  84. package/dist/commands/kit/create.js.map +1 -1
  85. package/dist/commands/login.js +3 -3
  86. package/dist/commands/login.js.map +1 -1
  87. package/dist/commands/noc/cluster/deinit.d.ts +1 -0
  88. package/dist/commands/noc/cluster/deinit.js +4 -3
  89. package/dist/commands/noc/cluster/deinit.js.map +1 -1
  90. package/dist/commands/noc/cluster/destroy.js +3 -3
  91. package/dist/commands/noc/cluster/destroy.js.map +1 -1
  92. package/dist/commands/noc/cluster/forget.js +4 -4
  93. package/dist/commands/noc/cluster/forget.js.map +1 -1
  94. package/dist/commands/noc/cluster/grant.js +2 -2
  95. package/dist/commands/noc/cluster/grant.js.map +1 -1
  96. package/dist/commands/noc/cluster/init.js +3 -3
  97. package/dist/commands/noc/cluster/init.js.map +1 -1
  98. package/dist/commands/noc/cluster/recreate.js +2 -2
  99. package/dist/commands/noc/cluster/recreate.js.map +1 -1
  100. package/dist/commands/publish.js +3 -2
  101. package/dist/commands/publish.js.map +1 -1
  102. package/dist/ops/INTERFACES_CLI.d.ts +7 -1
  103. package/dist/ops/INTERFACES_CLI.js +7 -0
  104. package/dist/ops/INTERFACES_CLI.js.map +1 -1
  105. package/dist/ops/LocalOps.js +29 -28
  106. package/dist/ops/LocalOps.js.map +1 -1
  107. package/dist/ops/cli-path-walker.d.ts +18 -0
  108. package/dist/ops/cli-path-walker.js +58 -53
  109. package/dist/ops/cli-path-walker.js.map +1 -1
  110. package/dist/ops/data/cli-context-repo.js +11 -9
  111. package/dist/ops/data/cli-context-repo.js.map +1 -1
  112. package/dist/ops/i-entry-validator.d.ts +21 -0
  113. package/dist/ops/i-entry-validator.js +3 -0
  114. package/dist/ops/i-entry-validator.js.map +1 -0
  115. package/dist/ops/i-identity-handler.js +2 -2
  116. package/dist/ops/i-identity-handler.js.map +1 -1
  117. package/dist/ops/i-output-styler.d.ts +15 -0
  118. package/dist/ops/i-output-styler.js +1 -15
  119. package/dist/ops/i-output-styler.js.map +1 -1
  120. package/dist/ops/i-user-input-provider.d.ts +56 -0
  121. package/dist/ops/i-user-input-provider.js +12 -0
  122. package/dist/ops/i-user-input-provider.js.map +1 -0
  123. package/dist/ops/index.d.ts +8 -0
  124. package/dist/ops/index.js +8 -0
  125. package/dist/ops/index.js.map +1 -1
  126. package/dist/ops/no-style-output-styler.d.ts +12 -0
  127. package/dist/ops/no-style-output-styler.js +34 -28
  128. package/dist/ops/no-style-output-styler.js.map +1 -1
  129. package/dist/ops/ops-constants.d.ts +7 -0
  130. package/dist/ops/ops-constants.js +12 -0
  131. package/dist/ops/ops-constants.js.map +1 -0
  132. package/dist/ops/test/mock-ui.d.ts +1 -1
  133. package/dist/ops/test/when-git-branchline-is-attempted.spec.js +5 -4
  134. package/dist/ops/test/when-git-branchline-is-attempted.spec.js.map +1 -1
  135. package/dist/ops/test/when-versions-are-parsed.spec.js +3 -2
  136. package/dist/ops/test/when-versions-are-parsed.spec.js.map +1 -1
  137. package/dist/ops/throwing-user-input-provider.d.ts +24 -0
  138. package/dist/ops/throwing-user-input-provider.js +65 -35
  139. package/dist/ops/throwing-user-input-provider.js.map +1 -1
  140. package/dist/prettify.js.map +1 -1
  141. package/dist/relay/contracts/contracts.d.ts +2 -20
  142. package/dist/relay/contracts/contracts.js +24 -30
  143. package/dist/relay/contracts/contracts.js.map +1 -1
  144. package/dist/relay/extended-relay-client.d.ts +0 -27
  145. package/dist/relay/extended-relay-client.js +36 -26
  146. package/dist/relay/extended-relay-client.js.map +1 -1
  147. package/dist/relay/relay-container.d.ts +1 -1
  148. package/dist/relay/relay-container.js +5 -5
  149. package/dist/relay/relay-container.js.map +1 -1
  150. package/dist/uilogic/build-configurator.d.ts +1 -1
  151. package/dist/uilogic/build-configurator.js +3 -3
  152. package/dist/uilogic/build-configurator.js.map +1 -1
  153. package/dist/uilogic/cloud-provider-contextualizer.d.ts +2 -4
  154. package/dist/uilogic/cloud-provider-contextualizer.js +9 -15
  155. package/dist/uilogic/cloud-provider-contextualizer.js.map +1 -1
  156. package/dist/uilogic/cloud-resource-configurator-factory.js +5 -0
  157. package/dist/uilogic/cloud-resource-configurator-factory.js.map +1 -1
  158. package/dist/uilogic/cloud-resource-configurators/aws-resource-configurator.d.ts +3 -4
  159. package/dist/uilogic/cloud-resource-configurators/aws-resource-configurator.js +10 -13
  160. package/dist/uilogic/cloud-resource-configurators/aws-resource-configurator.js.map +1 -1
  161. package/dist/uilogic/cloud-resource-configurators/az-interactive-login-configurator.d.ts +2 -1
  162. package/dist/uilogic/cloud-resource-configurators/az-interactive-login-configurator.js +4 -3
  163. package/dist/uilogic/cloud-resource-configurators/az-interactive-login-configurator.js.map +1 -1
  164. package/dist/uilogic/cloud-resource-configurators/azure-resource-configurator.d.ts +3 -4
  165. package/dist/uilogic/cloud-resource-configurators/azure-resource-configurator.js +27 -24
  166. package/dist/uilogic/cloud-resource-configurators/azure-resource-configurator.js.map +1 -1
  167. package/dist/uilogic/cloud-resource-configurators/docker-hub-resource-configurator.d.ts +1 -1
  168. package/dist/uilogic/cloud-resource-configurators/docker-hub-resource-configurator.js +3 -3
  169. package/dist/uilogic/cloud-resource-configurators/docker-hub-resource-configurator.js.map +1 -1
  170. package/dist/uilogic/cloud-resource-configurators/helm-resource-configurator.d.ts +2 -2
  171. package/dist/uilogic/cloud-resource-configurators/helm-resource-configurator.js +7 -4
  172. package/dist/uilogic/cloud-resource-configurators/helm-resource-configurator.js.map +1 -1
  173. package/dist/uilogic/cloud-resource-configurators/unsupported-resource-configurator.d.ts +1 -1
  174. package/dist/uilogic/cloud-resource-configurators/unsupported-resource-configurator.js +2 -2
  175. package/dist/uilogic/cloud-resource-configurators/unsupported-resource-configurator.js.map +1 -1
  176. package/dist/uilogic/config-ui-utils.d.ts +3 -3
  177. package/dist/uilogic/config-ui-utils.js +24 -13
  178. package/dist/uilogic/config-ui-utils.js.map +1 -1
  179. package/dist/uilogic/enterprise-contextualizer.d.ts +1 -1
  180. package/dist/uilogic/environment-contextualizer.d.ts +1 -1
  181. package/dist/uilogic/image-configurator.d.ts +2 -2
  182. package/dist/uilogic/image-configurator.js +1 -1
  183. package/dist/uilogic/image-configurator.js.map +1 -1
  184. package/dist/uilogic/image-contextualizer.d.ts +1 -1
  185. package/dist/uilogic/image-contextualizer.js +11 -6
  186. package/dist/uilogic/image-contextualizer.js.map +1 -1
  187. package/dist/uilogic/image-registry-contextualizer.d.ts +7 -1
  188. package/dist/uilogic/image-registry-contextualizer.js +56 -3
  189. package/dist/uilogic/image-registry-contextualizer.js.map +1 -1
  190. package/dist/uilogic/prompt-select-fuzzy.js +3 -3
  191. package/dist/uilogic/prompt-select-fuzzy.js.map +1 -1
  192. package/dist/uilogic/render-methods.d.ts +1 -0
  193. package/dist/uilogic/render-methods.js +2 -1
  194. package/dist/uilogic/render-methods.js.map +1 -1
  195. package/dist/uilogic/rootmap-ui-utils.d.ts +28 -8
  196. package/dist/uilogic/rootmap-ui-utils.js +132 -8
  197. package/dist/uilogic/rootmap-ui-utils.js.map +1 -1
  198. package/dist/uilogic/tenant-contextualizer.d.ts +1 -1
  199. package/dist/user-context-loader.js +4 -3
  200. package/dist/user-context-loader.js.map +1 -1
  201. package/oclif.manifest.json +210 -28
  202. package/package.json +4 -5
  203. package/dist/cli-common/i-user-input-provider.d.ts +0 -0
  204. package/dist/cli-common/i-user-input-provider.js +0 -19
  205. package/dist/cli-common/i-user-input-provider.js.map +0 -1
  206. package/dist/cli-common/tenant-contextualizer.d.ts +0 -0
  207. package/dist/cli-common/tenant-contextualizer.js +0 -436
  208. package/dist/cli-common/tenant-contextualizer.js.map +0 -1
  209. package/dist/ops/docker-registry-api-client/docker-registry-api-client.d.ts +0 -0
  210. package/dist/ops/docker-registry-api-client/docker-registry-api-client.js +0 -289
  211. package/dist/ops/docker-registry-api-client/docker-registry-api-client.js.map +0 -1
  212. package/dist/uilogic/cloud-resource-configurators/az-acr-cli-authenticator.d.ts +0 -0
  213. package/dist/uilogic/cloud-resource-configurators/az-acr-cli-authenticator.js +0 -78
  214. package/dist/uilogic/cloud-resource-configurators/az-acr-cli-authenticator.js.map +0 -1
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.2.256",
2
+ "version": "1.2.257",
3
3
  "commands": {
4
4
  "branch": {
5
5
  "id": "branch",
@@ -1346,28 +1346,50 @@
1346
1346
  "required": false,
1347
1347
  "allowNo": false
1348
1348
  },
1349
- "to-script": {
1350
- "name": "to-script",
1349
+ "helm": {
1350
+ "name": "helm",
1351
1351
  "type": "boolean",
1352
- "char": "t",
1353
- "description": "Outputs an assembled command string, NO execution",
1352
+ "description": "Indicates that this asset will be base on a Helm chart instead of a container (optional: defaults to false).",
1354
1353
  "required": false,
1355
1354
  "allowNo": false
1356
1355
  },
1357
1356
  "silent": {
1358
1357
  "name": "silent",
1359
1358
  "type": "boolean",
1360
- "char": "y",
1361
- "description": "(Optional: defaults to false) Prevents confirmations of user-values that are remembered from prior runs. Requires: image,registry,name,code,enterprise,port",
1362
- "required": false,
1359
+ "description": "Non-Interactive mode; executes without any user interaction and fails on any missing or invalid arguments.",
1363
1360
  "allowNo": false,
1364
- "dependsOn": [
1365
- "image",
1366
- "registry",
1367
- "name",
1368
- "code",
1369
- "enterprise",
1370
- "port"
1361
+ "exclusive": [
1362
+ "echo",
1363
+ "to-script"
1364
+ ]
1365
+ },
1366
+ "echo": {
1367
+ "name": "echo",
1368
+ "type": "boolean",
1369
+ "description": "Echo interaction mode; renders the equivalent non-interactive cli command for future use before final execution.",
1370
+ "allowNo": false,
1371
+ "exclusive": [
1372
+ "to-script",
1373
+ "silent"
1374
+ ]
1375
+ },
1376
+ "to-script": {
1377
+ "name": "to-script",
1378
+ "type": "boolean",
1379
+ "description": "Toscript interaction mode; renders the equivalent non-interactive cli command WITHOUT any execution.",
1380
+ "allowNo": false,
1381
+ "exclusive": [
1382
+ "echo",
1383
+ "silent"
1384
+ ]
1385
+ },
1386
+ "take-defaults": {
1387
+ "name": "take-defaults",
1388
+ "type": "boolean",
1389
+ "description": "Setting this to true prevents prompting for confirmation on parameters that were passed in or were automatically set to default values (Irrelevant in --silent mode). This behavior does NOT apply to scenarios that the command needs to override invalid user input; such cases will always prompt for confirmation. eg: when no argument was provided for file or type, and only one exists, the system will render the autoselected file unless this flag is set.",
1390
+ "allowNo": false,
1391
+ "exclusive": [
1392
+ "silent"
1371
1393
  ]
1372
1394
  }
1373
1395
  },
@@ -1817,7 +1839,7 @@
1817
1839
  "allowNo": false,
1818
1840
  "exclusive": [
1819
1841
  "echo",
1820
- "toscript"
1842
+ "to-script"
1821
1843
  ]
1822
1844
  },
1823
1845
  "echo": {
@@ -1826,12 +1848,12 @@
1826
1848
  "description": "Echo interaction mode; renders the equivalent non-interactive cli command for future use before final execution.",
1827
1849
  "allowNo": false,
1828
1850
  "exclusive": [
1829
- "toscript",
1851
+ "to-script",
1830
1852
  "silent"
1831
1853
  ]
1832
1854
  },
1833
- "toscript": {
1834
- "name": "toscript",
1855
+ "to-script": {
1856
+ "name": "to-script",
1835
1857
  "type": "boolean",
1836
1858
  "description": "Toscript interaction mode; renders the equivalent non-interactive cli command WITHOUT any execution.",
1837
1859
  "allowNo": false,
@@ -1840,8 +1862,8 @@
1840
1862
  "silent"
1841
1863
  ]
1842
1864
  },
1843
- "takeDefaults": {
1844
- "name": "takeDefaults",
1865
+ "take-defaults": {
1866
+ "name": "take-defaults",
1845
1867
  "type": "boolean",
1846
1868
  "description": "Prevents prompting for confirmation on parameters that were passed in or were set to default values.",
1847
1869
  "allowNo": false,
@@ -2522,7 +2544,7 @@
2522
2544
  "name": "sourceFile",
2523
2545
  "type": "option",
2524
2546
  "char": "s",
2525
- "description": "The path-name to the LOCAL file to which the settings are written, relative to the root of the Codiac project.",
2547
+ "description": "The path-name to the LOCAL file to which the settings are written, can be either absolute, or relative to the current working directory.",
2526
2548
  "multiple": false
2527
2549
  },
2528
2550
  "runtimePathName": {
@@ -2534,12 +2556,7 @@
2534
2556
  "multiple": false
2535
2557
  }
2536
2558
  },
2537
- "args": {
2538
- "setting": {
2539
- "name": "setting",
2540
- "description": "The key for the config setting to add"
2541
- }
2542
- }
2559
+ "args": {}
2543
2560
  },
2544
2561
  "config:view": {
2545
2562
  "id": "config:view",
@@ -2717,6 +2734,7 @@
2717
2734
  "description": "Code indicating the Cloud Service Provider (CSP) being authenticated with.",
2718
2735
  "required": false,
2719
2736
  "options": [
2737
+ "artifactHub",
2720
2738
  "aws",
2721
2739
  "azure",
2722
2740
  "dockerHub",
@@ -2754,6 +2772,7 @@
2754
2772
  "description": "Code indicating the Cloud Service Provider (CSP) being authenticated with.",
2755
2773
  "required": false,
2756
2774
  "options": [
2775
+ "artifactHub",
2757
2776
  "aws",
2758
2777
  "azure",
2759
2778
  "dockerHub",
@@ -3362,6 +3381,84 @@
3362
3381
  "accessKey"
3363
3382
  ]
3364
3383
  },
3384
+ "host:list": {
3385
+ "id": "host:list",
3386
+ "description": "Retrieves the list of host mapping strategies defined on a given enterprise.",
3387
+ "strict": true,
3388
+ "pluginName": "@codiac.io/codiac-cli",
3389
+ "pluginAlias": "@codiac.io/codiac-cli",
3390
+ "pluginType": "core",
3391
+ "aliases": [],
3392
+ "examples": [
3393
+ "<%= config.bin %> <%= command.id %>"
3394
+ ],
3395
+ "flags": {
3396
+ "enterprise": {
3397
+ "name": "enterprise",
3398
+ "type": "option",
3399
+ "char": "e",
3400
+ "description": "(optional if there is only one) The enterprise in which the domains have been mapped.",
3401
+ "multiple": false
3402
+ },
3403
+ "output": {
3404
+ "name": "output",
3405
+ "type": "option",
3406
+ "char": "o",
3407
+ "description": "format in which to render the data.",
3408
+ "multiple": false,
3409
+ "options": [
3410
+ "json",
3411
+ "yaml"
3412
+ ],
3413
+ "default": "json"
3414
+ },
3415
+ "silent": {
3416
+ "name": "silent",
3417
+ "type": "boolean",
3418
+ "description": "Non-Interactive mode; executes without any user interaction and fails on any missing or invalid arguments.",
3419
+ "allowNo": false,
3420
+ "exclusive": [
3421
+ "echo",
3422
+ "to-script"
3423
+ ]
3424
+ },
3425
+ "echo": {
3426
+ "name": "echo",
3427
+ "type": "boolean",
3428
+ "description": "Echo interaction mode; renders the equivalent non-interactive cli command for future use before final execution.",
3429
+ "allowNo": false,
3430
+ "exclusive": [
3431
+ "to-script",
3432
+ "silent"
3433
+ ]
3434
+ },
3435
+ "to-script": {
3436
+ "name": "to-script",
3437
+ "type": "boolean",
3438
+ "description": "Toscript interaction mode; renders the equivalent non-interactive cli command WITHOUT any execution.",
3439
+ "allowNo": false,
3440
+ "exclusive": [
3441
+ "echo",
3442
+ "silent"
3443
+ ]
3444
+ },
3445
+ "take-defaults": {
3446
+ "name": "take-defaults",
3447
+ "type": "boolean",
3448
+ "description": "Setting this to true prevents prompting for confirmation on parameters that were passed in or were automatically set to default values (Irrelevant in --silent mode). This behavior does NOT apply to scenarios that the command needs to override invalid user input; such cases will always prompt for confirmation. eg: when no argument was provided for file or type, and only one exists, the system will render the autoselected file unless this flag is set.",
3449
+ "allowNo": false,
3450
+ "exclusive": [
3451
+ "silent"
3452
+ ]
3453
+ }
3454
+ },
3455
+ "args": {
3456
+ "domain": {
3457
+ "name": "domain",
3458
+ "description": "domain name to filter on (without any wildcards), eg: `yoursite.com`"
3459
+ }
3460
+ }
3461
+ },
3365
3462
  "host:map": {
3366
3463
  "id": "host:map",
3367
3464
  "description": "Declares a strategy for mapping assets to ingress routes for a domain name.",
@@ -3434,6 +3531,85 @@
3434
3531
  }
3435
3532
  }
3436
3533
  },
3534
+ "host:view": {
3535
+ "id": "host:view",
3536
+ "description": "Retrieves the overall map of domain routes for the given enterprise, resulting from the current host mapping strategies, environments, and assets.",
3537
+ "strict": true,
3538
+ "pluginName": "@codiac.io/codiac-cli",
3539
+ "pluginAlias": "@codiac.io/codiac-cli",
3540
+ "pluginType": "core",
3541
+ "aliases": [],
3542
+ "examples": [
3543
+ "<%= config.bin %> <%= command.id %>"
3544
+ ],
3545
+ "flags": {
3546
+ "enterprise": {
3547
+ "name": "enterprise",
3548
+ "type": "option",
3549
+ "char": "e",
3550
+ "description": "(optional if there is only one) The enterprise in which the domains have been mapped.",
3551
+ "multiple": false
3552
+ },
3553
+ "output": {
3554
+ "name": "output",
3555
+ "type": "option",
3556
+ "char": "o",
3557
+ "description": "format in which to render the data.",
3558
+ "multiple": false,
3559
+ "options": [
3560
+ "json",
3561
+ "yaml",
3562
+ "pretty"
3563
+ ],
3564
+ "default": "pretty"
3565
+ },
3566
+ "silent": {
3567
+ "name": "silent",
3568
+ "type": "boolean",
3569
+ "description": "Non-Interactive mode; executes without any user interaction and fails on any missing or invalid arguments.",
3570
+ "allowNo": false,
3571
+ "exclusive": [
3572
+ "echo",
3573
+ "to-script"
3574
+ ]
3575
+ },
3576
+ "echo": {
3577
+ "name": "echo",
3578
+ "type": "boolean",
3579
+ "description": "Echo interaction mode; renders the equivalent non-interactive cli command for future use before final execution.",
3580
+ "allowNo": false,
3581
+ "exclusive": [
3582
+ "to-script",
3583
+ "silent"
3584
+ ]
3585
+ },
3586
+ "to-script": {
3587
+ "name": "to-script",
3588
+ "type": "boolean",
3589
+ "description": "Toscript interaction mode; renders the equivalent non-interactive cli command WITHOUT any execution.",
3590
+ "allowNo": false,
3591
+ "exclusive": [
3592
+ "echo",
3593
+ "silent"
3594
+ ]
3595
+ },
3596
+ "take-defaults": {
3597
+ "name": "take-defaults",
3598
+ "type": "boolean",
3599
+ "description": "Setting this to true prevents prompting for confirmation on parameters that were passed in or were automatically set to default values (Irrelevant in --silent mode). This behavior does NOT apply to scenarios that the command needs to override invalid user input; such cases will always prompt for confirmation. eg: when no argument was provided for file or type, and only one exists, the system will render the autoselected file unless this flag is set.",
3600
+ "allowNo": false,
3601
+ "exclusive": [
3602
+ "silent"
3603
+ ]
3604
+ }
3605
+ },
3606
+ "args": {
3607
+ "domain": {
3608
+ "name": "domain",
3609
+ "description": "domain name to filter on (without any wildcards), eg: `yoursite.com`"
3610
+ }
3611
+ }
3612
+ },
3437
3613
  "identity:delete": {
3438
3614
  "id": "identity:delete",
3439
3615
  "description": "Removes an identity token from storage for the current user.",
@@ -3524,6 +3700,7 @@
3524
3700
  "required": false,
3525
3701
  "multiple": false,
3526
3702
  "options": [
3703
+ "artifactHub",
3527
3704
  "aws",
3528
3705
  "azure",
3529
3706
  "dockerHub",
@@ -4164,6 +4341,7 @@
4164
4341
  "required": false,
4165
4342
  "multiple": false,
4166
4343
  "options": [
4344
+ "artifactHub",
4167
4345
  "azure",
4168
4346
  "aws",
4169
4347
  "dockerHub",
@@ -5655,6 +5833,7 @@
5655
5833
  "required": false,
5656
5834
  "multiple": false,
5657
5835
  "options": [
5836
+ "artifactHub",
5658
5837
  "aws",
5659
5838
  "azure",
5660
5839
  "dockerHub",
@@ -5729,6 +5908,7 @@
5729
5908
  "required": false,
5730
5909
  "multiple": false,
5731
5910
  "options": [
5911
+ "artifactHub",
5732
5912
  "azure",
5733
5913
  "aws",
5734
5914
  "dockerHub",
@@ -5784,6 +5964,7 @@
5784
5964
  "required": false,
5785
5965
  "multiple": false,
5786
5966
  "options": [
5967
+ "artifactHub",
5787
5968
  "azure",
5788
5969
  "aws",
5789
5970
  "dockerHub",
@@ -5893,6 +6074,7 @@
5893
6074
  "required": false,
5894
6075
  "multiple": false,
5895
6076
  "options": [
6077
+ "artifactHub",
5896
6078
  "azure",
5897
6079
  "aws",
5898
6080
  "dockerHub",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@codiac.io/codiac-cli",
3
- "description": "Local command line interface for managing enterprise assets and environments",
4
- "version": "1.2.256",
3
+ "description": "Local command line interface for managing enterprise assets and environments.",
4
+ "version": "1.2.257",
5
5
  "author": "Codiac",
6
6
  "bin": {
7
7
  "codiac": "./bin/run",
@@ -30,11 +30,10 @@
30
30
  "@codiac.io/api-client-base": "^1.1.15",
31
31
  "@codiac.io/cli-tools": "^1.1.10",
32
32
  "@codiac.io/codiac-common": "^1.1.76",
33
- "@codiac.io/codiac-domain": "1.3.31",
34
- "@codiac.io/codiac-ops-common": "^1.1.87",
33
+ "@codiac.io/codiac-domain": "^1.3.32",
34
+ "@codiac.io/codiac-ops-common": "^1.2.1",
35
35
  "@codiac.io/codiac-relay-contracts": "^1.2.17",
36
36
  "@codiac.io/jwt-lib": "^1.1.6",
37
- "@codiac.io/relay-client": "^1.2.44",
38
37
  "@kubernetes/client-node": "^0.20.0",
39
38
  "@oclif/core": "2.8.6",
40
39
  "@oclif/plugin-autocomplete": "^1.4.6",
File without changes
@@ -1,19 +0,0 @@
1
- "use strict";
2
- // export type EntryValue = string|number|boolean;
3
- // export type choice<T extends EntryValue> = T|{ name: string, value?: T }
4
- // /** Retrieves value from the user. */
5
- // export interface IUserInputProvider {
6
- // /** Renders a message to the user (DOES NOT LOG the message). */
7
- // userMessage(message: string): void;
8
- // /** @param id Identifies the prompt for internal use, esp in mocking. This value never renders to the user. */
9
- // prompt<T extends EntryValue>(id: string, prompt: string, required?: boolean, defaultValue?: T): Promise<T|undefined>;
10
- // /** @param id Identifies the prompt for internal use, esp in mocking. This value never renders to the user. */
11
- // promptPassword(id: string, prompt: string): Promise<string>;
12
- // /** @param id Identifies the prompt for internal use, esp in mocking. This value never renders to the user. */
13
- // promptSelect<T extends EntryValue>(id: string, prompt: string, choices: choice<T>[], multiSelect?: boolean): Promise<T|undefined>;
14
- // /** @param id Identifies the prompt for internal use, esp in mocking. This value never renders to the user.
15
- // * @param prompt The message to print for the user.
16
- // * @param defaultValue defaults to TRUE. */
17
- // promptConfirm(id: string, prompt: string, defaultValue?: boolean): Promise<boolean>;
18
- // }
19
- //# sourceMappingURL=i-user-input-provider.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"i-user-input-provider.js","sourceRoot":"","sources":["../../src/cli-common/i-user-input-provider.ts"],"names":[],"mappings":";AACA,kDAAkD;AAElD,2EAA2E;AAE3E,wCAAwC;AACxC,wCAAwC;AAExC,qEAAqE;AACrE,wCAAwC;AAExC,oHAAoH;AACpH,0HAA0H;AAE1H,oHAAoH;AACpH,iEAAiE;AAEjE,oHAAoH;AACpH,uIAAuI;AAEvI,kHAAkH;AAClH,wDAAwD;AACxD,gDAAgD;AAChD,yFAAyF;AACzF,IAAI"}
File without changes