xiu-cli

0.0.6 • Public • Published
logo

show

陈独秀坐飞机 -- 在天上秀

write bash script in toml file.

property shell -> plugin xiu-plugin-shell, default install xiu-plugin-shell

Usage

  1. Install
npm i -g xiu-cli
  1. Create xiu.toml config file
[env]
NAME="Yugo"
 
[[pipes]]
name='test'
shell='''
echo $NAME
sleep 2
cal
echo "\a"
'''
 
[[pipes]]
name='build'
shell='''
echo 陈独秀同学,请你坐下
'''
 
[[pipes]]
name='deploy'
skip=true
shell='''
echo 买橘子
'''
  1. Run commond

if you set skip , then will be skip the task.

➜ xiu

How to create plugin

function shell(task, shell) {
  // task is config object
  // shell is pomisefiy spawn
  // you code in here
  return shell(task.shell) // like this
}
 
module.exports = module.exports.default = exports = shell
 
Object.defineProperty(exports, '__esModule', {
  value: true
})

publish your package, and the package name like xiu-plugin-deploy, and in your config file add deploy property .

Readme

Keywords

Package Sidebar

Install

npm i xiu-cli

Weekly Downloads

1

Version

0.0.6

License

MIT

Last publish

Collaborators

  • miyogurt