v5.4.0
版本发布时间: 2022-04-15 01:44:08
pypyr/pypyr最新发布版本:v5.9.1(2023-09-22 11:13:53)
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 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