陈独秀坐飞机 -- 在天上秀
write bash script in toml file.
property shell
-> plugin xiu-plugin-shell
, default install xiu-plugin-shell
。
Usage
- Install
npm i -g xiu-cli
- Create
xiu.toml
config file
[env]NAME="Yugo" [[pipes]]name='test'shell='''echo $NAMEsleep 2calecho "\a"''' [[pipes]]name='build'shell='''echo 陈独秀同学,请你坐下''' [[pipes]]name='deploy'skip=trueshell='''echo 买橘子'''
- Run commond
if you set skip , then will be skip the task.
➜ xiu
How to create plugin
{ // task is config object // shell is pomisefiy spawn // you code in here return // like this} moduleexports = moduleexportsdefault = exports = shell Object
publish your package, and the package name like xiu-plugin-deploy
, and in your config file add deploy
property .