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.

Install

Install with pip install shyml.

Getting started

Create a executable yaml file in your repo with the following shebang:

#!/usr/bin/env shyml

Then, start adding a YAML document in it.

Each YAML document (separated by ) should contain a name key.

Other keys it can define:

  • script: a bash script in list or string format, arguments will be proxied

  • help: a help text to describe the job

  • color: a color to render the job name

  • requires: the list of other jobs to execute prior to this job

  • hook: set to before toautomatically execute before any other

  • env: a YAML hash of env var

Example:

#!/usr/bin/env shyml
name: foo
help: bar
requires:
- other
script:
- ./super
     long
     line

Usage:

./sh.yml                       # lists jobs
./sh.yml -d jobname            # print a job script code
./sh.yml -h jobname            # print a job help
./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.9.0.tar.gz (4.2 kB view details)

Uploaded Source

File details

Details for the file shyml-0.9.0.tar.gz.

File metadata

  • Download URL: shyml-0.9.0.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8

File hashes

Hashes for shyml-0.9.0.tar.gz
Algorithm Hash digest
SHA256 edd9052d9ea2a0cb9b66a4cf85bf24afaf7b85559c4c4ccbe369cfc7fba973ea
MD5 6f16a6dce544abfac122f138d5edeb78
BLAKE2b-256 e537024d3ee0a229ad50ae4600d81c609382372956d5cfc1b2d08dc95acdc167

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