Skip to main content

A simple CLI tool to run commands from a YAML file.

Project description

UnRun

PyPI downloads per month PyPI version GitHub last commit GitHub issues

:rocket: 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

Run the command:

echo "Hello, world!"

Nested Command

You can run nested commands by specifying the full path:

unrun foo.bar

Run the command:

echo "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

Run the commands:

echo "This is baz item 1" && echo "This is baz item 2"

Supports !and, !or and !; YAML tags to combine commands.

Arguments

  • key: The key of the command to run.
  • --file: Specify a custom YAML file (default is unrun.yaml).
  • extra: Additional arguments to pass after each command.

License

MIT License

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

unrun-0.3.1.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

unrun-0.3.1-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file unrun-0.3.1.tar.gz.

File metadata

  • Download URL: unrun-0.3.1.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.6

File hashes

Hashes for unrun-0.3.1.tar.gz
Algorithm Hash digest
SHA256 a5b0cae3b94873eabdd8b73015df5b1b3732f6fd38c8576400fc6a076e3bc500
MD5 391567e80e9650064961c6f0458d1cf6
BLAKE2b-256 5d59d97d20dcccfb5a2f7cd98df2911ff96eba34427e7e3f45d86c53f92a72f6

See more details on using hashes here.

File details

Details for the file unrun-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: unrun-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 6.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.6

File hashes

Hashes for unrun-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 00c0acd004c98423dac8be43f2c866ad24d72efd7e67ca27cd8729b668cb4df7
MD5 3d812ffafa2d6956c4a69cc432eff9da
BLAKE2b-256 f198ed94181964e5c0060cdf7dc988ab0c437692dfa45b405e7e3b38b9c99ede

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page