Skip to content

Commit

Permalink
feat: added run_sh to vscode plugin (#738)
Browse files Browse the repository at this point in the history
Added run_sh to vs-code plugin.
  • Loading branch information
Peeeekay committed Jun 15, 2023
1 parent f1fcde1 commit 337c994
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions cli/cli/commands/lsp/resource/kurtosis_starlark.json
Expand Up @@ -179,6 +179,44 @@
}
]
},
{
"name": "run_sh",
"detail": "It executes a one-time execution task. It runs the bash command specified by the mandatory field `run` on an image specified by the optional `image` field",
"documentation": "",
"returnType": "struct(output:string, code:number, file_artifacts:list)",
"params": [
{
"name": "run",
"type": "string",
"content": "run",
"detail": "The bash command to run, as a string. It will be executed via 'sh -c $COMMAND'"
},
{
"name": "image",
"type": "string",
"content": "image?",
"detail": "Image the bash command will be run on"
},
{
"name": "workdir",
"type": "string",
"content": "workdir?",
"detail": "Sets the working dir in which the command will be run and the files will be mounted at"
},
{
"name": "files",
"type": "dict<string, string>",
"content": "files?",
"detail": "A mapping of path_on_container_where_contents_will_be_mounted -> files_artifact_id_to_mount"
},
{
"name": "store",
"type": "list<string>",
"content": "store?",
"detail": "List of paths to directories or files that will be copied to a file artifact"
}
]
},
{
"name": "set_connection",
"detail": "The set_connection can be used to either update or replace the default connection settings",
Expand Down

0 comments on commit 337c994

Please sign in to comment.