Skip to main content

write shell in sh.yml

Project description

Sometimes gnu make reminds me how old I am, shyml makes me feel like a baby again.

Getting started

Install with pip install shyml.

And then you can add files like that to your repositories:

#!/usr/bin/env shyml
name: test
help: Testing commands
script: some command
hook: before  # inject this job prior to others
env:
  GLOBAL_ENV: something

---
name: test.reset
help: Example subcommand
env:
  LOCAL_ENV: other
script:
- echo $GLOBAL_ENV $LOCAL_ENV
- some
     --super
     --long=$myvar
     line
- ./sh.yml test

Usage:

./sh.yml                       # lists jobs
./sh.yml -d jobname            # print a job script code
./sh.yml jobname               # run a job in a local bash shell

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

shyml-0.7.8.dev2.tar.gz (4.2 kB view hashes)

Uploaded Source

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