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


Download files

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

Files for yash, version 0.6.3
Filename, size File type Python version Upload date Hashes
Filename, size yash-0.6.3.tar.gz (3.3 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page