YAML to Bash
Project description
Sometimes I make reminds me how old I am, yash makes me feel like a baby again.
Getting started
Install with pip install yash.
The yash command will print out the jobs it find. Pipe it to bash if you want to execute what it generates:
yash # lists jobs
yash jobname # print a job in bash
yash jobname | bash -eux # run a job in a local bash shell
It will look for jobs in a yash.yml file that you could write as such:
---
env:
someglobal: foo
---
name: example
script:
- myvar=x
- some
--super
--long=$myvar
line
Then you could see your generated bash with yaml example and execute it with yaml example | bash -eux or something.
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
yash-0.6.3.tar.gz
(3.3 kB
view details)
File details
Details for the file yash-0.6.3.tar.gz
.
File metadata
- Download URL: yash-0.6.3.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.6.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 506c2767f2edad44b443e33963ef2bd2ce5d3c662dd3f921e38b2e98121eacf9 |
|
MD5 | 9ec05a82934d39e6ae69f0b043ba3a6c |
|
BLAKE2b-256 | d4b6760bc08147bf15b19423b9fa84846e6647cd8a3a202a7680a632e573c097 |