0.0.3 • Published 8 years ago

path-command v0.0.3

Weekly downloads
7
License
-
Repository
github
Last release
8 years ago

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" "$@"

Examples/

Sources:

Feedback GitHub issues Join the chat at https://gitter.im/russianidiot/path-command.sh.cli GitHub followers