0.0.3 • Published 8 years ago
path-command v0.0.3
Install
npm install -g path-command
Features
- command: executable/script or bash function (export required)
- set current directory to path if path is directory
- pass path to command if path is file
- exit on error
Usage
usage: path-command command path ...
Example
$ command="python setup.py install"
$ set -- path/to/repo1 path/to/repo2
$ path-command "$command" "$@"
# bash function (super fast)
$ function func() { ... }
$ export -f func
$ command="func"
$ path-command "$command" "$@"
Sources:
0.0.3
8 years ago