Skip to content

support positional arguments and single dash for single letter parameter

Wout De Nolf requested to merge improve_script_argument_support into main

Some examples

python -c "print('hello')"

ewoks execute '{"nodes":[{"id":"node1", "task_type":"script", "task_identifier":"python"}]}' \
    -p "c"="print('hello')"
ls --all

ewoks execute '{"nodes":[{"id":"node1", "task_type":"script", "task_identifier":"ls"}]}' \
    -p "0"="--all"
ls -ltrh .

ewoks execute '{"nodes":[{"id":"node1", "task_type":"script", "task_identifier":"ls"}]}' \
    -p "0"="-ltrh" \
    -p "1"="."

Note: this task type supports scripts, commands and scripts that are commands.

Edited by Wout De Nolf

Merge request reports

Loading