diff --git a/desktop/extensions-sdk/dev/api/backend.md b/desktop/extensions-sdk/dev/api/backend.md index d3c356f5c713..04e144d096f2 100644 --- a/desktop/extensions-sdk/dev/api/backend.md +++ b/desktop/extensions-sdk/dev/api/backend.md @@ -170,3 +170,7 @@ window.ddClient.spawnHostCmd( } ); ``` + +> You cannot use this to chain commands in a single `exec()` invocation (like `cmd1 $(cmd2)` or using pipe between commands). +> +> You need to invoke `exec()` for each command and parse results to pass parameters to the next command if needed. diff --git a/desktop/extensions-sdk/dev/api/docker.md b/desktop/extensions-sdk/dev/api/docker.md index 6ff2208202bc..687e0b5a7ca3 100644 --- a/desktop/extensions-sdk/dev/api/docker.md +++ b/desktop/extensions-sdk/dev/api/docker.md @@ -1,5 +1,5 @@ --- -title: Docker +title: Docker description: Docker extension API keywords: Docker, extensions, sdk, API --- @@ -128,6 +128,10 @@ await ddClient.docker.cli.exec( ); ``` +> You cannot use this to chain commands in a single `exec()` invocation (like `docker kill $(docker ps -q)` or using pipe between commands). +> +> You need to invoke `exec()` for each command and parse results to pass parameters to the next command if needed. + See the [Exec API reference](reference/interfaces/Exec.md) for details about these methods. > Deprecated execution of Docker commands