A simple CLI tool to run commands from a YAML file.
Project description
UnRun
A simple CLI tool to run commands from a YAML file.
Installation
pip install unrun
Usage & Features
Create an unrun.yaml file in your project root:
hello: echo "Hello, world!"
foo:
bar: echo "This is foo bar"
baz: !and
- echo "This is baz item 1"
- echo "This is baz item 2"
Single Command
You can run a single command by specifying its key:
unrun hello
Output:
Hello, world!
Nested Command
You can run nested commands by specifying the full path:
unrun foo.bar
Output:
This is foo bar
List Command
To run all commands under a key that contains a list, you can simply specify the key:
unrun baz
Output:
This is baz item 1
This is baz item 2
Arguments
key: The key of the command to run.--file: Specify a custom YAML file (default isunrun.yaml).extra: Additional arguments to pass after each command.
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file unrun-0.3.0.tar.gz.
File metadata
- Download URL: unrun-0.3.0.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
18f8ef68b55fc74a85c97c895f907a62e0fa6c7671d452db6c1e3002d86abc5a
|
|
| MD5 |
a2cd9ae106be96323434b3db7b99e800
|
|
| BLAKE2b-256 |
4e9256aef3fbcef0647563c7bc4e04a8e54758fab1614f57916f815c1b0b4315
|
File details
Details for the file unrun-0.3.0-py3-none-any.whl.
File metadata
- Download URL: unrun-0.3.0-py3-none-any.whl
- Upload date:
- Size: 6.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4c071739ee2c0a358c9843894c1f03023b8ff83cf4281fda35c724411e86ae68
|
|
| MD5 |
7540af97037cedf62e1af11dbbd63068
|
|
| BLAKE2b-256 |
47198082a9a06ca44f362db558129ee213b9e85b2ce846a3c3ef3979c95f509c
|