Thanks to visit codestin.com
Credit goes to github.com

Skip to content

cmd step: support ~ & env #270

@yaythomas

Description

@yaythomas

pypyr.steps.cmd doesn't support ~ expansion or $ENV vars in its cmd input.

Easy enough to add. Then operators won't have to go and invoke the more inefficient pypyr.steps.shell just for doing something like:

- name: pypyr.steps.cmd
   in:
     cmd: cp ~/mypath ~/myoutpath

Note that $ENV expansion supports formats $ENV and ${ENV}. It leaves unrecognised tokens alone, meaning pypyr can do a {substitution} format afterwards without breaking anything.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions