New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

xiu-cli

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xiu-cli

a mini shell tool by toml

latest
npmnpm
Version
0.0.6
Version published
Weekly downloads
4
-63.64%
Maintainers
1
Weekly downloads
 
Created
Source
logo

show

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

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 $NAME
sleep 2
cal
echo "\a"
'''

[[pipes]]
name='build'
shell='''
echo 陈独秀同学,请你坐下
'''

[[pipes]]
name='deploy'
skip=true
shell='''
echo 买橘子
'''
  • 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 .

Keywords

shell

FAQs

Package last updated on 17 Jan 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts