pypyr release v5.4.0 permalink

run multiple commands & shell statements in same step permalink

Release Date: 2022-04-14T17:44:08Z

summary permalink

- 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 and shell 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 permalink

Full Changelog: https://github.com/pypyr/pypyr/compare/v5.3.0...v5.4.0

how to upgrade permalink

If you want to upgrade (and you totally should!):

$ pip install --upgrade pypyr

source permalink

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.

last updated on .