@codiac.io/codiac-cli 1.3.63 → 1.3.64
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/README.md +1 -1
- package/dist/commands/asset/edit.js +2 -2
- package/dist/commands/asset/edit.js.map +1 -1
- package/dist/commands/asset/entrypoint/delete.d.ts +42 -0
- package/dist/commands/asset/entrypoint/delete.js +312 -0
- package/dist/commands/asset/entrypoint/delete.js.map +1 -0
- package/dist/commands/asset/entrypoint/set.d.ts +45 -0
- package/dist/commands/asset/entrypoint/set.js +338 -0
- package/dist/commands/asset/entrypoint/set.js.map +1 -0
- package/dist/relay/relay-container.js +1 -1
- package/dist/uilogic/cloud-resource-configurators/asset-configurator.js +0 -1
- package/dist/uilogic/cloud-resource-configurators/asset-configurator.js.map +1 -1
- package/dist/uilogic/rootmap-ui-utils.js +2 -0
- package/dist/uilogic/rootmap-ui-utils.js.map +1 -1
- package/dist/uilogic/validators/semver-range-validator.d.ts +17 -0
- package/dist/uilogic/validators/semver-range-validator.js +39 -0
- package/dist/uilogic/validators/semver-range-validator.js.map +1 -0
- package/oclif.manifest.json +209 -3
- package/package.json +1 -1
package/oclif.manifest.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.3.
|
|
2
|
+
"version": "1.3.64",
|
|
3
3
|
"commands": {
|
|
4
4
|
"branch": {
|
|
5
5
|
"id": "branch",
|
|
@@ -1650,7 +1650,7 @@
|
|
|
1650
1650
|
"name": "enterprise",
|
|
1651
1651
|
"type": "option",
|
|
1652
1652
|
"char": "e",
|
|
1653
|
-
"description": "The name of the enterprise in which this asset resides. (defaults to the current enterprise context)",
|
|
1653
|
+
"description": "The name of the enterprise in which this asset resides. (defaults to the current enterprise context). NOTE: The enterprise assignment for an asset is immutable and cannot be modified; this flag is used only for identifying the asset.",
|
|
1654
1654
|
"required": false,
|
|
1655
1655
|
"multiple": false
|
|
1656
1656
|
},
|
|
@@ -1658,7 +1658,7 @@
|
|
|
1658
1658
|
"name": "name",
|
|
1659
1659
|
"type": "option",
|
|
1660
1660
|
"char": "n",
|
|
1661
|
-
"description": "The name of the asset to edit.",
|
|
1661
|
+
"description": "The name of the asset to edit. NOTE: The asset name is immutable and cannot be modified; this flag is used only for identifying the asset.",
|
|
1662
1662
|
"required": false,
|
|
1663
1663
|
"multiple": false
|
|
1664
1664
|
},
|
|
@@ -5942,6 +5942,212 @@
|
|
|
5942
5942
|
}
|
|
5943
5943
|
}
|
|
5944
5944
|
},
|
|
5945
|
+
"asset:entrypoint:delete": {
|
|
5946
|
+
"id": "asset:entrypoint:delete",
|
|
5947
|
+
"description": "Removes an existing override of the image startup command for this asset (restores the original ENTRYPOINT set in the image itself, as well as any image elements specified using CMD)).",
|
|
5948
|
+
"strict": true,
|
|
5949
|
+
"pluginName": "@codiac.io/codiac-cli",
|
|
5950
|
+
"pluginAlias": "@codiac.io/codiac-cli",
|
|
5951
|
+
"pluginType": "core",
|
|
5952
|
+
"aliases": [],
|
|
5953
|
+
"hiddenAliases": [],
|
|
5954
|
+
"examples": [
|
|
5955
|
+
{
|
|
5956
|
+
"description": "Interactive",
|
|
5957
|
+
"command": "<%= config.bin %> <%= command.id %>"
|
|
5958
|
+
},
|
|
5959
|
+
{
|
|
5960
|
+
"description": "Interactive, preset for the a specific asset.",
|
|
5961
|
+
"command": "<%= config.bin %> <%= command.id %> -a my-api"
|
|
5962
|
+
},
|
|
5963
|
+
{
|
|
5964
|
+
"description": "Interactive as above, but when you have more than a single enterprise, and one of them is named `ml`.",
|
|
5965
|
+
"command": "<%= config.bin %> <%= command.id %> -e ml -a my-worker"
|
|
5966
|
+
},
|
|
5967
|
+
{
|
|
5968
|
+
"description": "Non-interactive, removal by specifying the version range with an explicit match",
|
|
5969
|
+
"command": "<%= config.bin %> <%= command.id %> -e ml -a my-worker -v '>=1.2.3' --silent"
|
|
5970
|
+
}
|
|
5971
|
+
],
|
|
5972
|
+
"flags": {
|
|
5973
|
+
"enterprise": {
|
|
5974
|
+
"name": "enterprise",
|
|
5975
|
+
"type": "option",
|
|
5976
|
+
"char": "e",
|
|
5977
|
+
"description": "The name of the enterprise in which this asset resides (defaults to the current enterprise context).",
|
|
5978
|
+
"required": false,
|
|
5979
|
+
"multiple": false
|
|
5980
|
+
},
|
|
5981
|
+
"asset": {
|
|
5982
|
+
"name": "asset",
|
|
5983
|
+
"type": "option",
|
|
5984
|
+
"char": "a",
|
|
5985
|
+
"description": "The name of the asset to adjust.",
|
|
5986
|
+
"required": false,
|
|
5987
|
+
"multiple": false
|
|
5988
|
+
},
|
|
5989
|
+
"version-range": {
|
|
5990
|
+
"name": "version-range",
|
|
5991
|
+
"type": "option",
|
|
5992
|
+
"char": "v",
|
|
5993
|
+
"description": "(optional, defaults to the entrypoint assigned to \"any\" version) Used to identify the entrypoint. The semantic version rule describing which versions of the asset will get this entrypoint applied. (eg: Just this one: `1.2.3`, or this one and any future patches: `^1.2.3`, or any on or after this one: `>=1.2.3`, or any before this one `<1.2.3` , or any between inclusive: `1.0.0 - 1.2.3`). NOTE: Remember to wrap your range spec in quotes if it has any spaces in it.",
|
|
5994
|
+
"required": false,
|
|
5995
|
+
"multiple": false
|
|
5996
|
+
},
|
|
5997
|
+
"silent": {
|
|
5998
|
+
"name": "silent",
|
|
5999
|
+
"type": "boolean",
|
|
6000
|
+
"description": "Non-Interactive mode; executes without any user interaction and fails on any missing or invalid arguments.",
|
|
6001
|
+
"allowNo": false,
|
|
6002
|
+
"dependsOn": [
|
|
6003
|
+
"asset"
|
|
6004
|
+
],
|
|
6005
|
+
"exclusive": [
|
|
6006
|
+
"echo",
|
|
6007
|
+
"to-script"
|
|
6008
|
+
]
|
|
6009
|
+
},
|
|
6010
|
+
"echo": {
|
|
6011
|
+
"name": "echo",
|
|
6012
|
+
"type": "boolean",
|
|
6013
|
+
"description": "Echo interaction mode; renders the equivalent non-interactive cli command for future use before final execution.",
|
|
6014
|
+
"allowNo": false,
|
|
6015
|
+
"exclusive": [
|
|
6016
|
+
"to-script",
|
|
6017
|
+
"silent"
|
|
6018
|
+
]
|
|
6019
|
+
},
|
|
6020
|
+
"to-script": {
|
|
6021
|
+
"name": "to-script",
|
|
6022
|
+
"type": "boolean",
|
|
6023
|
+
"description": "Toscript interaction mode; renders the equivalent non-interactive cli command WITHOUT any execution.",
|
|
6024
|
+
"allowNo": false,
|
|
6025
|
+
"exclusive": [
|
|
6026
|
+
"echo",
|
|
6027
|
+
"silent"
|
|
6028
|
+
]
|
|
6029
|
+
}
|
|
6030
|
+
},
|
|
6031
|
+
"args": {}
|
|
6032
|
+
},
|
|
6033
|
+
"asset:entrypoint:set": {
|
|
6034
|
+
"id": "asset:entrypoint:set",
|
|
6035
|
+
"description": "Sets the command run on container startup (Overrides the ENTRYPOINT set in the image itself, as well as any image elements specified using CMD)).",
|
|
6036
|
+
"strict": true,
|
|
6037
|
+
"pluginName": "@codiac.io/codiac-cli",
|
|
6038
|
+
"pluginAlias": "@codiac.io/codiac-cli",
|
|
6039
|
+
"pluginType": "core",
|
|
6040
|
+
"aliases": [
|
|
6041
|
+
"asset:entrypoint"
|
|
6042
|
+
],
|
|
6043
|
+
"hiddenAliases": [],
|
|
6044
|
+
"examples": [
|
|
6045
|
+
{
|
|
6046
|
+
"description": "Interactive",
|
|
6047
|
+
"command": "<%= config.bin %> <%= command.id %>"
|
|
6048
|
+
},
|
|
6049
|
+
{
|
|
6050
|
+
"description": "Interactive, preset for the a specific asset.",
|
|
6051
|
+
"command": "<%= config.bin %> <%= command.id %> -a my-api"
|
|
6052
|
+
},
|
|
6053
|
+
{
|
|
6054
|
+
"description": "Interactive as above, but when you have more than a single enterprise, and one of them is named `ml`.",
|
|
6055
|
+
"command": "<%= config.bin %> <%= command.id %> -e ml -a my-worker"
|
|
6056
|
+
},
|
|
6057
|
+
{
|
|
6058
|
+
"description": "Invoking an executable from within a bash shell (this mock scenario just imports some credentials and workflows and once complete, the image shuts down)",
|
|
6059
|
+
"command": "<%= config.bin %> <%= command.id %> -a my-import --command '/bin/sh' --arg '-c' --arg 'myexe import:credentials --separate --input=/backup/credentials && myexe import:workflow --separate --input=/backup/workflows'"
|
|
6060
|
+
},
|
|
6061
|
+
{
|
|
6062
|
+
"description": "Same as above but non-interactive (for use in scripts and pipelines)",
|
|
6063
|
+
"command": "<%= config.bin %> <%= command.id %> --silent -e ml -a my-import --command '/bin/sh' --arg '-c' --arg 'myexe import:credentials --separate --input=/backup/credentials && myexe import:workflow --separate --input=/backup/workflows'"
|
|
6064
|
+
}
|
|
6065
|
+
],
|
|
6066
|
+
"flags": {
|
|
6067
|
+
"enterprise": {
|
|
6068
|
+
"name": "enterprise",
|
|
6069
|
+
"type": "option",
|
|
6070
|
+
"char": "e",
|
|
6071
|
+
"description": "The name of the enterprise in which this asset resides. (defaults to the current enterprise context). NOTE: The enterprise assignment for an asset is immutable and cannot be modified; this flag is used only for identifying the asset.",
|
|
6072
|
+
"required": false,
|
|
6073
|
+
"multiple": false
|
|
6074
|
+
},
|
|
6075
|
+
"asset": {
|
|
6076
|
+
"name": "asset",
|
|
6077
|
+
"type": "option",
|
|
6078
|
+
"char": "a",
|
|
6079
|
+
"description": "The name of the asset to edit. NOTE: The asset name is immutable and cannot be modified; this flag is used only for identifying the asset.",
|
|
6080
|
+
"required": false,
|
|
6081
|
+
"multiple": false
|
|
6082
|
+
},
|
|
6083
|
+
"workdir": {
|
|
6084
|
+
"name": "workdir",
|
|
6085
|
+
"type": "option",
|
|
6086
|
+
"char": "d",
|
|
6087
|
+
"description": "(optional) Folder path within the image from which to execute the command. Overrides the default working directory specified by the container image.",
|
|
6088
|
+
"required": false,
|
|
6089
|
+
"multiple": false
|
|
6090
|
+
},
|
|
6091
|
+
"command": {
|
|
6092
|
+
"name": "command",
|
|
6093
|
+
"type": "option",
|
|
6094
|
+
"char": "c",
|
|
6095
|
+
"description": "The command to run. Not executed within a shell.",
|
|
6096
|
+
"required": false,
|
|
6097
|
+
"multiple": false
|
|
6098
|
+
},
|
|
6099
|
+
"arg": {
|
|
6100
|
+
"name": "arg",
|
|
6101
|
+
"type": "option",
|
|
6102
|
+
"char": "c",
|
|
6103
|
+
"description": "Gets passed to the entryPointCommand. Often, the entrypointCommand opens a shell, allowing this to be the command to run inside the shell, eg: `--command=\"/bin/sh\" --arg=\"-c ls -a\"` which yields: `/bin/sh -c ls -a`",
|
|
6104
|
+
"required": false,
|
|
6105
|
+
"multiple": true
|
|
6106
|
+
},
|
|
6107
|
+
"version-range": {
|
|
6108
|
+
"name": "version-range",
|
|
6109
|
+
"type": "option",
|
|
6110
|
+
"char": "v",
|
|
6111
|
+
"description": "(optional) The semantic version rule describing which versions of the asset will get this entrypoint applied. (eg: Just this one: `1.2.3`, or this one and any future patches: `^1.2.3`, or any on or after this one: `>=1.2.3`, or any before this one `<1.2.3` , or any between inclusive: `1.0.0 - 1.2.3`). NOTE: Remember to wrap your range spec in quotes if it has any spaces in it.",
|
|
6112
|
+
"required": false,
|
|
6113
|
+
"multiple": false
|
|
6114
|
+
},
|
|
6115
|
+
"silent": {
|
|
6116
|
+
"name": "silent",
|
|
6117
|
+
"type": "boolean",
|
|
6118
|
+
"description": "Non-Interactive mode; executes without any user interaction and fails on any missing or invalid arguments.",
|
|
6119
|
+
"allowNo": false,
|
|
6120
|
+
"dependsOn": [
|
|
6121
|
+
"asset"
|
|
6122
|
+
],
|
|
6123
|
+
"exclusive": [
|
|
6124
|
+
"echo",
|
|
6125
|
+
"to-script"
|
|
6126
|
+
]
|
|
6127
|
+
},
|
|
6128
|
+
"echo": {
|
|
6129
|
+
"name": "echo",
|
|
6130
|
+
"type": "boolean",
|
|
6131
|
+
"description": "Echo interaction mode; renders the equivalent non-interactive cli command for future use before final execution.",
|
|
6132
|
+
"allowNo": false,
|
|
6133
|
+
"exclusive": [
|
|
6134
|
+
"to-script",
|
|
6135
|
+
"silent"
|
|
6136
|
+
]
|
|
6137
|
+
},
|
|
6138
|
+
"to-script": {
|
|
6139
|
+
"name": "to-script",
|
|
6140
|
+
"type": "boolean",
|
|
6141
|
+
"description": "Toscript interaction mode; renders the equivalent non-interactive cli command WITHOUT any execution.",
|
|
6142
|
+
"allowNo": false,
|
|
6143
|
+
"exclusive": [
|
|
6144
|
+
"echo",
|
|
6145
|
+
"silent"
|
|
6146
|
+
]
|
|
6147
|
+
}
|
|
6148
|
+
},
|
|
6149
|
+
"args": {}
|
|
6150
|
+
},
|
|
5945
6151
|
"asset:probe:create": {
|
|
5946
6152
|
"id": "asset:probe:create",
|
|
5947
6153
|
"description": "Declares the implementation of a health or readiness probe for an asset.",
|
package/package.json
CHANGED