Skip to main content

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
env:
  example_var: ./autoplay-example
  multiline_var: |
    foo
    bar
script:
- test -f $example_var || echo "$multiline_var" > $example_var
- some
     --super
     --long
     line

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

yash-0.6.0.tar.gz (2.6 kB view details)

Uploaded Source

File details

Details for the file yash-0.6.0.tar.gz.

File metadata

  • Download URL: yash-0.6.0.tar.gz
  • Upload date:
  • Size: 2.6 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

Hashes for yash-0.6.0.tar.gz
Algorithm Hash digest
SHA256 0cea6ecc25a0bcb671bea0add1713dc4a42ff200c6aa3e6fa4681bcc5a1b448f
MD5 f25c2d91a851e6ce2a4b4e80d3e674e9
BLAKE2b-256 d30213498c42262a44c49355b57cf4d7555b1289139445eae68b0c171e47cbfe

See more details on using hashes here.

Supported by

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