npm.io
0.0.3 • Published 10 years ago

path-command

Licence
—
Version
0.0.3
Deps
0
Vulns
0
Weekly
0
DeprecatedThis package is deprecated

bashPlatform (Linux, OS X)

Build Statusdrone.ioWercker

PyPI PyPI PyPI

npmnpmnpm

execute command for every path

Install

pip: [sudo] pip install path-command

npm: 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


Python packages russianidiot.github.io/python/

cli packages russianidiot.github.io/cli/

repos list russianidiot.github.io

README.md generated with readmemako.py (python+mako templates) and .README dotfiles

Keywords