Release Date: 2022-03-09T16:38:06Z
Create shortcuts to your pypyr run commands & their input args.
This is handy for creating short & sweet aliases for longer pipeline run commands.
So if you have a pipeline you normally run like this:
$ pypyr arb/my-pipeline arg1=1234 arg2="/path/to long/annoying path to type/x" arg3="arb'hello"
You can create a shortcut alias for this like so:
shortcuts: my-shortcut: pipeline: arb/my-pipeline args: arg1: 1234 arg2: /path/to long/annoying path to type/x arg3: "arb'hello"
[tool.pypyr.shortcuts] [tool.pypyr.shortcuts.my-shortcut] pipeline_name = "arb/my-pipeline" [shortcuts.my-shortcut.args] arg1 = 1234 arg2 = "/path/to long/annoying path to type/x" arg3 = "arb'hello"
And now for the same pipeline + inputs you can just run:
$ pypyr my-shortcut
You can create your shortcut definition in
pyproject.toml or in the pypyr yaml
You can make your shortcuts project specific, or for the entire user profile, or globally for your entire system.
For full details, see pypyr shortcuts in the docs.
- Shortcuts by @yaythomas in https://github.com/pypyr/pypyr/pull/268
- Bump version: 5.2.0 → 5.3.0 by @yaythomas in https://github.com/pypyr/pypyr/pull/269
Full Changelog: https://github.com/pypyr/pypyr/compare/v5.2.0...v5.3.0
If you want to upgrade (and you totally should!):
$ pip install --upgrade pypyr
You can find pypyr release v5.3.0 on github, where you can click through to associated Issues, Pull Requests and Users.
Released by yaythomas.