YAML转Bash
项目描述
有时我会提醒我有多老了,而yash让我感觉回到了婴儿时期。
入门
使用 pip install yash 安装。
yash命令将打印出它找到的任务。如果您想执行它生成的操作,请将其管道传输到bash
yash # lists jobs
yash jobname # print a job in bash
yash jobname | bash -eux # run a job in a local bash shell
它将在一个 yash.yml 文件中查找任务,您可以将其编写如下
---
env:
someglobal: foo
---
name: example
script:
- myvar=x
- some
--super
--long=$myvar
line
然后您可以使用 yaml示例 看到生成的bash,并使用 yaml示例 | bash -eux 或类似方式执行它。
项目详情
关闭
yash-0.6.3.tar.gz的散列
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 506c2767f2edad44b443e33963ef2bd2ce5d3c662dd3f921e38b2e98121eacf9 |
|
MD5 | 9ec05a82934d39e6ae69f0b043ba3a6c |
|
BLAKE2b-256 | d4b6760bc08147bf15b19423b9fa84846e6647cd8a3a202a7680a632e573c097 |