/cmr/device/run-script
当前显示英文原文,切换到「中文」可查看译文。
run-script
Runs a script on the selected devices.
cmr/device/run-script
Package: cmr Type: Command
Runs a script on the selected devices.
| Argument | Type | Description |
|---|---|---|
script | alt { script: string } | The script to run on the selected devices. |
labels | object | Select the devices to run the script on using labels. Supports + and - signs as AND and AND NOT operators, respectively; if no sign is provided, the OR operator is used. |
order | object | Execution order (by labels). |
strategy | enum () | How devices are processed: parallel or sequential. |
fail-policy | enum () | Behaviour if a device fails: continue, stop, or continue-order. |
timeout | time | Script execution timeout. |
| Read-only Argument | Type | Description |
|---|---|---|
device | enum | Device the script is running on. |
status | string | Execution status. |
output | string | Script output. |