pypyr release v5.4.0
run multiple commands & shell statements in same step
Release Date: 2022-04-14T17:44:08Z
summary
- pypyr.steps.cmd & pypyr.steps.shell now also takes a list input to run multiple commands/shell statements in the same step!
- name: pypyr.steps.cmd
in:
cmd: echo 0
- name: pypyr.steps.cmd
in:
cmd:
- echo 1
- echo 2
- name: pypyr.steps.cmd
in:
cmd:
run:
- echo 3
- echo 4
save: False
cwd: mydir/subdir
- Both the
cmd
andshell
steps expanded to allow:- decode output in different encodings
- save output as raw bytes or as encoded text.
- File output for stdout/stderr.
- File create mode of append or overwrite.
stderr
can redirect to/dev/stdout
- Both
stdout
&stderr
can redirect to/dev/null
# when save: True
- name: pypyr.steps.cmd
comment: when save is True
in:
cmd:
run: curl https://myurl.blah/diblah
save: True
cwd: .
bytes: False
encoding: utf-8
# when save: False (this is default)
- name: pypyr.steps.cmd
comment: when save is False (the default when `save` not set)
in:
cmd:
run: curl --cert certfile --key keyfile https://myurl.blah/diblah
cwd: ..
stdout: ./path/out.txt
stderr: ./path/err.txt
append: False
what’s changed
- cmd & shell list input by @yaythomas in https://github.com/pypyr/pypyr/pull/271
Full Changelog: https://github.com/pypyr/pypyr/compare/v5.3.0...v5.4.0
how to upgrade
If you want to upgrade (and you totally should!):
$ pip install --upgrade pypyr
source
You can find pypyr release v5.4.0 on github, where you can click through to associated Issues, Pull Requests and Users.
Released by yaythomas.