@codiac.io/codiac-cli 1.3.47 → 1.3.49

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 (157) hide show
  1. package/README.md +1 -1
  2. package/dist/apis/codiac-api/gen/client.d.ts +3 -2
  3. package/dist/apis/codiac-api/gen/client.js +13 -0
  4. package/dist/apis/codiac-api/gen/client.js.map +1 -1
  5. package/dist/apis/codiac-api/gen/contracts.d.ts +15 -0
  6. package/dist/apis/codiac-api/gen/contracts.js.map +1 -1
  7. package/dist/command-base-enterprise.d.ts +5 -5
  8. package/dist/command-base-enterprise.js +8 -3
  9. package/dist/command-base-enterprise.js.map +1 -1
  10. package/dist/command-base-exec.d.ts +1 -1
  11. package/dist/command-base-exec.js +8 -3
  12. package/dist/command-base-exec.js.map +1 -1
  13. package/dist/commands/asset/create.d.ts +1 -1
  14. package/dist/commands/asset/create.js +14 -13
  15. package/dist/commands/asset/create.js.map +1 -1
  16. package/dist/commands/asset/deploy.d.ts +1 -1
  17. package/dist/commands/asset/deploy.js +4 -4
  18. package/dist/commands/asset/deploy.js.map +1 -1
  19. package/dist/commands/asset/list.d.ts +1 -0
  20. package/dist/commands/asset/list.js +4 -1
  21. package/dist/commands/asset/list.js.map +1 -1
  22. package/dist/commands/asset/obliterate.d.ts +33 -0
  23. package/dist/commands/asset/obliterate.js +182 -0
  24. package/dist/commands/asset/obliterate.js.map +1 -0
  25. package/dist/commands/asset/probe/create.js +5 -3
  26. package/dist/commands/asset/probe/create.js.map +1 -1
  27. package/dist/commands/asset/probe/delete.d.ts +1 -1
  28. package/dist/commands/asset/probe/delete.js +6 -6
  29. package/dist/commands/asset/probe/delete.js.map +1 -1
  30. package/dist/commands/asset/probe/list.d.ts +1 -1
  31. package/dist/commands/asset/probe/list.js +4 -4
  32. package/dist/commands/asset/probe/list.js.map +1 -1
  33. package/dist/commands/asset/recycle.js +4 -3
  34. package/dist/commands/asset/recycle.js.map +1 -1
  35. package/dist/commands/asset/{destroy.d.ts → undeploy.d.ts} +1 -1
  36. package/dist/commands/asset/{destroy.js → undeploy.js} +12 -10
  37. package/dist/commands/asset/undeploy.js.map +1 -0
  38. package/dist/commands/asset/view.d.ts +1 -2
  39. package/dist/commands/asset/view.js +22 -14
  40. package/dist/commands/asset/view.js.map +1 -1
  41. package/dist/commands/asset/volume/create.d.ts +2 -0
  42. package/dist/commands/asset/volume/create.js +6 -2
  43. package/dist/commands/asset/volume/create.js.map +1 -1
  44. package/dist/commands/asset/volume/delete.d.ts +1 -0
  45. package/dist/commands/asset/volume/delete.js +5 -2
  46. package/dist/commands/asset/volume/delete.js.map +1 -1
  47. package/dist/commands/asset/volume/list.d.ts +1 -0
  48. package/dist/commands/asset/volume/list.js +5 -1
  49. package/dist/commands/asset/volume/list.js.map +1 -1
  50. package/dist/commands/asset/where.d.ts +22 -0
  51. package/dist/commands/asset/where.js +131 -0
  52. package/dist/commands/asset/where.js.map +1 -0
  53. package/dist/commands/auth/cabinet/allow.d.ts +1 -1
  54. package/dist/commands/auth/cabinet/allow.js +2 -4
  55. package/dist/commands/auth/cabinet/allow.js.map +1 -1
  56. package/dist/commands/auth/cabinet/allowed.d.ts +1 -1
  57. package/dist/commands/auth/cabinet/allowed.js +2 -4
  58. package/dist/commands/auth/cabinet/allowed.js.map +1 -1
  59. package/dist/commands/auth/enterprise/allow/onEnvironments.d.ts +1 -1
  60. package/dist/commands/auth/enterprise/allow/onEnvironments.js +2 -4
  61. package/dist/commands/auth/enterprise/allow/onEnvironments.js.map +1 -1
  62. package/dist/commands/auth/enterprise/allow.d.ts +1 -1
  63. package/dist/commands/auth/enterprise/allow.js +2 -4
  64. package/dist/commands/auth/enterprise/allow.js.map +1 -1
  65. package/dist/commands/auth/enterprise/allowed.d.ts +1 -1
  66. package/dist/commands/auth/enterprise/allowed.js +2 -4
  67. package/dist/commands/auth/enterprise/allowed.js.map +1 -1
  68. package/dist/commands/auth/environment/allow/onCabinets.d.ts +1 -1
  69. package/dist/commands/auth/environment/allow/onCabinets.js +2 -4
  70. package/dist/commands/auth/environment/allow/onCabinets.js.map +1 -1
  71. package/dist/commands/auth/environment/allow.d.ts +1 -1
  72. package/dist/commands/auth/environment/allow.js +2 -4
  73. package/dist/commands/auth/environment/allow.js.map +1 -1
  74. package/dist/commands/auth/environment/allowed.d.ts +1 -1
  75. package/dist/commands/auth/environment/allowed.js +2 -4
  76. package/dist/commands/auth/environment/allowed.js.map +1 -1
  77. package/dist/commands/auth/role/allowed.d.ts +1 -1
  78. package/dist/commands/auth/role/allowed.js +4 -4
  79. package/dist/commands/auth/role/allowed.js.map +1 -1
  80. package/dist/commands/cabinet/contents.d.ts +33 -0
  81. package/dist/commands/cabinet/contents.js +199 -0
  82. package/dist/commands/cabinet/contents.js.map +1 -0
  83. package/dist/commands/cabinet/create.d.ts +1 -1
  84. package/dist/commands/cabinet/create.js +2 -2
  85. package/dist/commands/cabinet/create.js.map +1 -1
  86. package/dist/commands/cabinet/list.js +5 -3
  87. package/dist/commands/cabinet/list.js.map +1 -1
  88. package/dist/commands/cabinet/obliterate.d.ts +1 -0
  89. package/dist/commands/cabinet/obliterate.js +6 -5
  90. package/dist/commands/cabinet/obliterate.js.map +1 -1
  91. package/dist/commands/cluster/scaling/update.d.ts +1 -1
  92. package/dist/commands/cluster/scaling/update.js +4 -4
  93. package/dist/commands/cluster/scaling/update.js.map +1 -1
  94. package/dist/commands/config/add.js +9 -6
  95. package/dist/commands/config/add.js.map +1 -1
  96. package/dist/commands/config/delete.js +9 -7
  97. package/dist/commands/config/delete.js.map +1 -1
  98. package/dist/commands/config/deploy.js +5 -3
  99. package/dist/commands/config/deploy.js.map +1 -1
  100. package/dist/commands/config/import.js +4 -2
  101. package/dist/commands/config/import.js.map +1 -1
  102. package/dist/commands/config/settings/get.js +4 -4
  103. package/dist/commands/config/settings/get.js.map +1 -1
  104. package/dist/commands/config/view.d.ts +1 -0
  105. package/dist/commands/config/view.js +9 -6
  106. package/dist/commands/config/view.js.map +1 -1
  107. package/dist/commands/deploy.js +5 -4
  108. package/dist/commands/deploy.js.map +1 -1
  109. package/dist/commands/env/add.js +5 -2
  110. package/dist/commands/env/add.js.map +1 -1
  111. package/dist/commands/environment/cluster/attach.d.ts +1 -1
  112. package/dist/commands/environment/cluster/attach.js +6 -6
  113. package/dist/commands/environment/cluster/attach.js.map +1 -1
  114. package/dist/commands/environment/cluster/detach.d.ts +1 -1
  115. package/dist/commands/environment/cluster/detach.js +6 -6
  116. package/dist/commands/environment/cluster/detach.js.map +1 -1
  117. package/dist/commands/environment/create.js +5 -3
  118. package/dist/commands/environment/create.js.map +1 -1
  119. package/dist/commands/environment/list.d.ts +1 -0
  120. package/dist/commands/environment/list.js +4 -2
  121. package/dist/commands/environment/list.js.map +1 -1
  122. package/dist/commands/filestore/capture.js +4 -1
  123. package/dist/commands/filestore/capture.js.map +1 -1
  124. package/dist/commands/filestore/forget.d.ts +1 -1
  125. package/dist/commands/filestore/forget.js +6 -6
  126. package/dist/commands/filestore/forget.js.map +1 -1
  127. package/dist/commands/filestore/list.d.ts +2 -1
  128. package/dist/commands/filestore/list.js +5 -5
  129. package/dist/commands/filestore/list.js.map +1 -1
  130. package/dist/commands/host/delete.d.ts +1 -1
  131. package/dist/commands/host/delete.js +6 -6
  132. package/dist/commands/host/delete.js.map +1 -1
  133. package/dist/commands/host/list.d.ts +1 -1
  134. package/dist/commands/host/list.js +4 -4
  135. package/dist/commands/host/list.js.map +1 -1
  136. package/dist/commands/host/view.d.ts +1 -1
  137. package/dist/commands/host/view.js +4 -4
  138. package/dist/commands/host/view.js.map +1 -1
  139. package/dist/commands/kit/create.js +5 -2
  140. package/dist/commands/kit/create.js.map +1 -1
  141. package/dist/commands/noc/cluster/list.js +3 -2
  142. package/dist/commands/noc/cluster/list.js.map +1 -1
  143. package/dist/commands/secretStore/list.d.ts +1 -1
  144. package/dist/commands/secretStore/list.js +4 -4
  145. package/dist/commands/secretStore/list.js.map +1 -1
  146. package/dist/ops/LocalOps.js +5 -1
  147. package/dist/ops/LocalOps.js.map +1 -1
  148. package/dist/uilogic/enterprise-contextualizer.d.ts +3 -3
  149. package/dist/uilogic/enterprise-contextualizer.js +24 -29
  150. package/dist/uilogic/enterprise-contextualizer.js.map +1 -1
  151. package/dist/uilogic/rootmap-ui-utils.js +1 -0
  152. package/dist/uilogic/rootmap-ui-utils.js.map +1 -1
  153. package/dist/uilogic/tenant-contextualizer.js +2 -0
  154. package/dist/uilogic/tenant-contextualizer.js.map +1 -1
  155. package/oclif.manifest.json +345 -65
  156. package/package.json +1 -1
  157. package/dist/commands/asset/destroy.js.map +0 -1
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.3.47",
2
+ "version": "1.3.49",
3
3
  "commands": {
4
4
  "branch": {
5
5
  "id": "branch",
@@ -1607,9 +1607,9 @@
1607
1607
  "cabinetName"
1608
1608
  ]
1609
1609
  },
1610
- "asset:destroy": {
1611
- "id": "asset:destroy",
1612
- "description": "UN-deploys a given asset from a given cabinet. Defaults to removing only the pod deployments and leaving the service in place; set the --scorch argument to remove the service.",
1610
+ "asset:list": {
1611
+ "id": "asset:list",
1612
+ "description": "Shows the list of assets in a given enterprise.",
1613
1613
  "strict": true,
1614
1614
  "pluginName": "@codiac.io/codiac-cli",
1615
1615
  "pluginAlias": "@codiac.io/codiac-cli",
@@ -1617,74 +1617,14 @@
1617
1617
  "aliases": [],
1618
1618
  "hiddenAliases": [],
1619
1619
  "flags": {
1620
- "help": {
1621
- "name": "help",
1622
- "type": "boolean",
1623
- "char": "h",
1624
- "description": "Show CLI help.",
1625
- "allowNo": false
1626
- },
1627
1620
  "enterprise": {
1628
1621
  "name": "enterprise",
1629
1622
  "type": "option",
1630
1623
  "char": "e",
1631
- "description": "(optional: required only when asset name is not unique across enterprises) Code (name) of the enterprise to work with",
1624
+ "description": "The name of the enterprise containing the assets being viewed (required if there are more than one).",
1632
1625
  "required": false,
1633
1626
  "multiple": false
1634
1627
  },
1635
- "cabinet": {
1636
- "name": "cabinet",
1637
- "type": "option",
1638
- "char": "c",
1639
- "description": "Name of the cabinet from which the asset is to be removed.",
1640
- "required": false,
1641
- "multiple": false
1642
- },
1643
- "asset": {
1644
- "name": "asset",
1645
- "type": "option",
1646
- "char": "a",
1647
- "description": "Search string for the name of the asset to destroy (use ? to be prompted).",
1648
- "required": false,
1649
- "multiple": false
1650
- },
1651
- "version": {
1652
- "name": "version",
1653
- "type": "option",
1654
- "char": "v",
1655
- "description": "Search string for the version of the asset to destroy (use ? to be prompted).",
1656
- "required": false,
1657
- "multiple": false
1658
- },
1659
- "scorch": {
1660
- "name": "scorch",
1661
- "type": "boolean",
1662
- "char": "s",
1663
- "description": "(Optional: defaults to false) Destroys the service too, instead of just the deployment and pods.",
1664
- "required": false,
1665
- "allowNo": false
1666
- },
1667
- "silent": {
1668
- "name": "silent",
1669
- "type": "boolean",
1670
- "char": "y",
1671
- "description": "(Optional: defaults to false) Prevents confirmations of user-values that are remembered from prior runs.",
1672
- "required": false,
1673
- "allowNo": false
1674
- }
1675
- },
1676
- "args": {}
1677
- },
1678
- "asset:list": {
1679
- "id": "asset:list",
1680
- "description": "Shows the list of assets in a given enterprise.",
1681
- "strict": true,
1682
- "pluginName": "@codiac.io/codiac-cli",
1683
- "pluginAlias": "@codiac.io/codiac-cli",
1684
- "pluginType": "core",
1685
- "aliases": [],
1686
- "hiddenAliases": [],
1687
- "flags": {
1688
1628
  "output": {
1689
1629
  "name": "output",
1690
1630
  "type": "option",
@@ -1709,6 +1649,73 @@
1709
1649
  },
1710
1650
  "args": {}
1711
1651
  },
1652
+ "asset:obliterate": {
1653
+ "id": "asset:obliterate",
1654
+ "description": "Performs a full cascading delete of the given asset and all of its related data in Codiac (eg: versions, probes, configs, tags...). NOTE: This command does NOT delete anything from the image registry. NOTE: To obliterate an asset, you must first remove it from all cabinets; this command will not obliterate any asset that is currently deployed.",
1655
+ "strict": true,
1656
+ "pluginName": "@codiac.io/codiac-cli",
1657
+ "pluginAlias": "@codiac.io/codiac-cli",
1658
+ "pluginType": "core",
1659
+ "aliases": [],
1660
+ "hiddenAliases": [],
1661
+ "examples": [
1662
+ "<%= config.bin %> <%= command.id %>",
1663
+ "<%= config.bin %> <%= command.id %> -n my-api",
1664
+ "<%= config.bin %> <%= command.id %> -e main -n my-api"
1665
+ ],
1666
+ "flags": {
1667
+ "enterprise": {
1668
+ "name": "enterprise",
1669
+ "type": "option",
1670
+ "char": "e",
1671
+ "description": "The name of the enterprise in which to create this asset. (defaults to the current enterprise context)",
1672
+ "required": false,
1673
+ "multiple": false
1674
+ },
1675
+ "name": {
1676
+ "name": "name",
1677
+ "type": "option",
1678
+ "char": "n",
1679
+ "description": "The name of the asset to obliterate.",
1680
+ "required": false,
1681
+ "multiple": false
1682
+ },
1683
+ "silent": {
1684
+ "name": "silent",
1685
+ "type": "boolean",
1686
+ "description": "Non-Interactive mode; executes without any user interaction and fails on any missing or invalid arguments.",
1687
+ "allowNo": false,
1688
+ "dependsOn": [
1689
+ "name"
1690
+ ],
1691
+ "exclusive": [
1692
+ "echo",
1693
+ "to-script"
1694
+ ]
1695
+ },
1696
+ "echo": {
1697
+ "name": "echo",
1698
+ "type": "boolean",
1699
+ "description": "Echo interaction mode; renders the equivalent non-interactive cli command for future use before final execution.",
1700
+ "allowNo": false,
1701
+ "exclusive": [
1702
+ "to-script",
1703
+ "silent"
1704
+ ]
1705
+ },
1706
+ "to-script": {
1707
+ "name": "to-script",
1708
+ "type": "boolean",
1709
+ "description": "Toscript interaction mode; renders the equivalent non-interactive cli command WITHOUT any execution.",
1710
+ "allowNo": false,
1711
+ "exclusive": [
1712
+ "echo",
1713
+ "silent"
1714
+ ]
1715
+ }
1716
+ },
1717
+ "args": {}
1718
+ },
1712
1719
  "asset:recycle": {
1713
1720
  "id": "asset:recycle",
1714
1721
  "description": "Deploys a given asset to a given cabinet. Defaults to current version.",
@@ -1777,6 +1784,74 @@
1777
1784
  "cabinetName"
1778
1785
  ]
1779
1786
  },
1787
+ "asset:undeploy": {
1788
+ "id": "asset:undeploy",
1789
+ "description": "UN-deploys a given asset from a given cabinet. Defaults to removing only the pod deployments and leaving the service in place; set the --scorch argument to remove the service.",
1790
+ "strict": true,
1791
+ "pluginName": "@codiac.io/codiac-cli",
1792
+ "pluginAlias": "@codiac.io/codiac-cli",
1793
+ "pluginType": "core",
1794
+ "aliases": [],
1795
+ "hiddenAliases": [],
1796
+ "flags": {
1797
+ "help": {
1798
+ "name": "help",
1799
+ "type": "boolean",
1800
+ "char": "h",
1801
+ "description": "Show CLI help.",
1802
+ "allowNo": false
1803
+ },
1804
+ "enterprise": {
1805
+ "name": "enterprise",
1806
+ "type": "option",
1807
+ "char": "e",
1808
+ "description": "(optional: required only when asset name is not unique across enterprises) Code (name) of the enterprise to work with",
1809
+ "required": false,
1810
+ "multiple": false
1811
+ },
1812
+ "cabinet": {
1813
+ "name": "cabinet",
1814
+ "type": "option",
1815
+ "char": "c",
1816
+ "description": "Name of the cabinet from which the asset is to be removed.",
1817
+ "required": false,
1818
+ "multiple": false
1819
+ },
1820
+ "asset": {
1821
+ "name": "asset",
1822
+ "type": "option",
1823
+ "char": "a",
1824
+ "description": "Search string for the name of the asset to destroy (use ? to be prompted).",
1825
+ "required": false,
1826
+ "multiple": false
1827
+ },
1828
+ "version": {
1829
+ "name": "version",
1830
+ "type": "option",
1831
+ "char": "v",
1832
+ "description": "Search string for the version of the asset to destroy (use ? to be prompted).",
1833
+ "required": false,
1834
+ "multiple": false
1835
+ },
1836
+ "scorch": {
1837
+ "name": "scorch",
1838
+ "type": "boolean",
1839
+ "char": "s",
1840
+ "description": "(Optional: defaults to false) Destroys the service too, instead of just the deployment and pods.",
1841
+ "required": false,
1842
+ "allowNo": false
1843
+ },
1844
+ "silent": {
1845
+ "name": "silent",
1846
+ "type": "boolean",
1847
+ "char": "y",
1848
+ "description": "(Optional: defaults to false) Prevents confirmations of user-values that are remembered from prior runs.",
1849
+ "required": false,
1850
+ "allowNo": false
1851
+ }
1852
+ },
1853
+ "args": {}
1854
+ },
1780
1855
  "asset:view": {
1781
1856
  "id": "asset:view",
1782
1857
  "description": "Renders a selected type of content for an asset",
@@ -1946,6 +2021,74 @@
1946
2021
  }
1947
2022
  }
1948
2023
  },
2024
+ "asset:where": {
2025
+ "id": "asset:where",
2026
+ "description": "Shows the cabinets to which the given asset is currently deployed and which version is where.",
2027
+ "strict": true,
2028
+ "pluginName": "@codiac.io/codiac-cli",
2029
+ "pluginAlias": "@codiac.io/codiac-cli",
2030
+ "pluginType": "core",
2031
+ "aliases": [],
2032
+ "hiddenAliases": [],
2033
+ "examples": [
2034
+ "<%= config.bin %> <%= command.id %>",
2035
+ "<%= config.bin %> <%= command.id %> -a my-api",
2036
+ "<%= config.bin %> <%= command.id %> -e main -a my-api",
2037
+ "<%= config.bin %> <%= command.id %> -e main -a my-api --silent"
2038
+ ],
2039
+ "flags": {
2040
+ "enterprise": {
2041
+ "name": "enterprise",
2042
+ "type": "option",
2043
+ "char": "e",
2044
+ "description": "The name of the enterprise containing this asset. Required if there are more than one. (defaults to the current enterprise context)",
2045
+ "required": false,
2046
+ "multiple": false
2047
+ },
2048
+ "asset": {
2049
+ "name": "asset",
2050
+ "type": "option",
2051
+ "char": "a",
2052
+ "description": "The name of the asset to show.",
2053
+ "required": false,
2054
+ "multiple": false
2055
+ },
2056
+ "silent": {
2057
+ "name": "silent",
2058
+ "type": "boolean",
2059
+ "description": "Non-Interactive mode; executes without any user interaction and fails on any missing or invalid arguments.",
2060
+ "allowNo": false,
2061
+ "dependsOn": [
2062
+ "asset"
2063
+ ],
2064
+ "exclusive": [
2065
+ "echo",
2066
+ "to-script"
2067
+ ]
2068
+ },
2069
+ "echo": {
2070
+ "name": "echo",
2071
+ "type": "boolean",
2072
+ "description": "Echo interaction mode; renders the equivalent non-interactive cli command for future use before final execution.",
2073
+ "allowNo": false,
2074
+ "exclusive": [
2075
+ "to-script",
2076
+ "silent"
2077
+ ]
2078
+ },
2079
+ "to-script": {
2080
+ "name": "to-script",
2081
+ "type": "boolean",
2082
+ "description": "Toscript interaction mode; renders the equivalent non-interactive cli command WITHOUT any execution.",
2083
+ "allowNo": false,
2084
+ "exclusive": [
2085
+ "echo",
2086
+ "silent"
2087
+ ]
2088
+ }
2089
+ },
2090
+ "args": {}
2091
+ },
1949
2092
  "auth:register": {
1950
2093
  "id": "auth:register",
1951
2094
  "description": "Create your own user account.",
@@ -2119,6 +2262,83 @@
2119
2262
  },
2120
2263
  "args": {}
2121
2264
  },
2265
+ "cabinet:contents": {
2266
+ "id": "cabinet:contents",
2267
+ "description": "Renders the list of asset versions that are currently deployed to the given cabinet.",
2268
+ "strict": true,
2269
+ "pluginName": "@codiac.io/codiac-cli",
2270
+ "pluginAlias": "@codiac.io/codiac-cli",
2271
+ "pluginType": "core",
2272
+ "aliases": [
2273
+ "cab:contents"
2274
+ ],
2275
+ "hiddenAliases": [],
2276
+ "examples": [
2277
+ "<%= config.bin %> <%= command.id %>",
2278
+ "<%= config.bin %> <%= command.id %> -c dev7",
2279
+ "<%= config.bin %> <%= command.id %> -e main -c my-spike",
2280
+ {
2281
+ "description": "use the `--silent` flag to run this command when there is no user at the console (ie: TTY, ie: in a pipeline)",
2282
+ "command": "<%= config.bin %> <%= command.id %> -e main -c my-spike --silent"
2283
+ },
2284
+ {
2285
+ "description": "Use the `--to-script` flag to create a script file that runs this command",
2286
+ "command": "<%= config.bin %> <%= command.id %> -e main -c my-spike --to-script > show-contents.sh"
2287
+ }
2288
+ ],
2289
+ "flags": {
2290
+ "enterprise": {
2291
+ "name": "enterprise",
2292
+ "type": "option",
2293
+ "char": "e",
2294
+ "description": "The name of the enterprise in which to create this asset. (defaults to the current enterprise context)",
2295
+ "required": false,
2296
+ "multiple": false
2297
+ },
2298
+ "cabinet": {
2299
+ "name": "cabinet",
2300
+ "type": "option",
2301
+ "char": "c",
2302
+ "description": "The name of the cabinet to inspect.",
2303
+ "required": false,
2304
+ "multiple": false
2305
+ },
2306
+ "silent": {
2307
+ "name": "silent",
2308
+ "type": "boolean",
2309
+ "description": "Non-Interactive mode; executes without any user interaction and fails on any missing or invalid arguments.",
2310
+ "allowNo": false,
2311
+ "dependsOn": [
2312
+ "name"
2313
+ ],
2314
+ "exclusive": [
2315
+ "echo",
2316
+ "to-script"
2317
+ ]
2318
+ },
2319
+ "echo": {
2320
+ "name": "echo",
2321
+ "type": "boolean",
2322
+ "description": "Echo interaction mode; renders the equivalent non-interactive cli command for future use before final execution.",
2323
+ "allowNo": false,
2324
+ "exclusive": [
2325
+ "to-script",
2326
+ "silent"
2327
+ ]
2328
+ },
2329
+ "to-script": {
2330
+ "name": "to-script",
2331
+ "type": "boolean",
2332
+ "description": "Toscript interaction mode; renders the equivalent non-interactive cli command WITHOUT any execution.",
2333
+ "allowNo": false,
2334
+ "exclusive": [
2335
+ "echo",
2336
+ "silent"
2337
+ ]
2338
+ }
2339
+ },
2340
+ "args": {}
2341
+ },
2122
2342
  "cabinet:create": {
2123
2343
  "id": "cabinet:create",
2124
2344
  "description": "Initializes a cabinet for a given enterprise and environment. Returns an error if the cabinet already exists.",
@@ -2359,6 +2579,14 @@
2359
2579
  "description": "Show CLI help.",
2360
2580
  "allowNo": false
2361
2581
  },
2582
+ "enterprise": {
2583
+ "name": "enterprise",
2584
+ "type": "option",
2585
+ "char": "n",
2586
+ "description": "(required only when more than one enterprise exists) The name of the enterprise containing the cabinet.",
2587
+ "required": false,
2588
+ "multiple": false
2589
+ },
2362
2590
  "environment": {
2363
2591
  "name": "environment",
2364
2592
  "type": "option",
@@ -2956,6 +3184,14 @@
2956
3184
  "description": "Invokes a prompt to select from the existing settings.",
2957
3185
  "allowNo": false
2958
3186
  },
3187
+ "enterprise": {
3188
+ "name": "enterprise",
3189
+ "type": "option",
3190
+ "char": "e",
3191
+ "description": "The name of the enterprise that contains the asset. Required if there are more than one. (defaults to the current enterprise context)",
3192
+ "required": false,
3193
+ "multiple": false
3194
+ },
2959
3195
  "asset": {
2960
3196
  "name": "asset",
2961
3197
  "type": "option",
@@ -3707,6 +3943,14 @@
3707
3943
  ],
3708
3944
  "hiddenAliases": [],
3709
3945
  "flags": {
3946
+ "enterprise": {
3947
+ "name": "enterprise",
3948
+ "type": "option",
3949
+ "char": "e",
3950
+ "description": "The name of the enterprise to which the environments belong. (defaults to the current enterprise context)",
3951
+ "required": false,
3952
+ "multiple": false
3953
+ },
3710
3954
  "output": {
3711
3955
  "name": "output",
3712
3956
  "type": "option",
@@ -3920,6 +4164,13 @@
3920
4164
  "<%= config.bin %> <%= command.id %>"
3921
4165
  ],
3922
4166
  "flags": {
4167
+ "enterprise": {
4168
+ "name": "enterprise",
4169
+ "type": "option",
4170
+ "char": "e",
4171
+ "description": "(optional if there is only one) The enterprise in which the filestores are defined.",
4172
+ "multiple": false
4173
+ },
3923
4174
  "type": {
3924
4175
  "name": "type",
3925
4176
  "type": "option",
@@ -6080,6 +6331,22 @@
6080
6331
  "required": false,
6081
6332
  "multiple": false
6082
6333
  },
6334
+ "asset": {
6335
+ "name": "asset",
6336
+ "type": "option",
6337
+ "char": "a",
6338
+ "description": "The name of the asset to which this volume is being applied.",
6339
+ "required": false,
6340
+ "multiple": false
6341
+ },
6342
+ "enterprise": {
6343
+ "name": "enterprise",
6344
+ "type": "option",
6345
+ "char": "e",
6346
+ "description": "(required only if more than one enterprise exists) The name of the enterprise to which the asset belongs.",
6347
+ "required": false,
6348
+ "multiple": false
6349
+ },
6083
6350
  "description": {
6084
6351
  "name": "description",
6085
6352
  "type": "option",
@@ -6142,6 +6409,13 @@
6142
6409
  "required": false,
6143
6410
  "multiple": false
6144
6411
  },
6412
+ "enterprise": {
6413
+ "name": "enterprise",
6414
+ "type": "option",
6415
+ "char": "e",
6416
+ "description": "(required only if more than one enterprise exists) The name of the enterprise to which the asset belongs.",
6417
+ "multiple": false
6418
+ },
6145
6419
  "silent": {
6146
6420
  "name": "silent",
6147
6421
  "type": "boolean",
@@ -6179,6 +6453,12 @@
6179
6453
  "description": "Show CLI help.",
6180
6454
  "allowNo": false
6181
6455
  },
6456
+ "enterprise": {
6457
+ "name": "enterprise",
6458
+ "type": "option",
6459
+ "description": "(required only if more than one enterprise exists) The name of the enterprise to which the asset belongs.",
6460
+ "multiple": false
6461
+ },
6182
6462
  "name": {
6183
6463
  "name": "name",
6184
6464
  "type": "option",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@codiac.io/codiac-cli",
3
3
  "description": "Local command line interface for managing enterprise assets and environments. ",
4
- "version": "1.3.47",
4
+ "version": "1.3.49",
5
5
  "author": "Codiac",
6
6
  "bin": {
7
7
  "codiac": "./bin/run",
@@ -1 +0,0 @@
1
- {"version":3,"file":"destroy.js","sourceRoot":"","sources":["../../../src/commands/asset/destroy.ts"],"names":[],"mappings":";;;;AAAA,4BAA0B;AAC1B,sCAAoC;AAMpC,2EAAsE;AAKtE;;4DAE4D;AAC/C,QAAA,oBAAoB,GAAG,GAAG,CAAC;AAExC,MAAqB,YAAa,SAAQ,+CAAqB;IAkBrD,GAAG;;YACL,OAAO,IAAI,OAAO,CAAO,CAAO,OAAO,EAAE,MAAM,EAAE,EAAE;;gBAC/C,IAAI;oBACA,IAAI,CAAC,SAAS,EAAE,CAAC;oBACjB,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;oBAEvD,MAAA,IAAI,CAAC,eAAe,0CAAE,MAAM,CACvB,SAAS,CAAC,GAAS,EAAE;;wBAElB,IAAI;4BAEA,IAAI,CAAC,SAAS,GAAG,MAAM,IAAI,CAAC,sBAAsB,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;4BACnE,IAAI,UAAU,GAAG,CAAC,MAAM,IAAI,CAAC,0BAA0B,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC;4BACtF,IAAI,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;4BAErC,IAAI,OAAO,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,cAAc,CAAC,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