2019.3.22 • Published 5 years ago

execdir v2019.3.22

Weekly downloads
1
License
Unlicense
Repository
-
Last release
5 years ago

npm.io

run command from multiple directories

Installation

$ [sudo] pip install execdir

How it works

  1. create list of directories
  2. run command

Config

$XDG_CONFIG_HOME/execdir by default - ~/.config/execdir

$ export EXECDIR=~/Library/execdir

CLI

usage: execdir command [args]

Available commands:
    add                     add directories to list
    clear                   clear list
    get                     print list(s) directories
    set                     set list directories
    run                     run command from list directories
    rm                      remove directories from list

run `execdir COMMAND --help` for more infos

Examples

set directories

# ~/git/owner/repo
$ find ~/git -type d -maxdepth 2 | execdir set all
$ find ~/git -name "setup.py" -maxdepth 3 | sed 's#/[^/]*$##' | execdir set pypi
$ find ~/git -name "package.json" -maxdepth 3 | sed 's#/[^/]*$##' | execdir set npmjs
$ find ~/git -name ".travis.yml" -maxdepth 3 | sed 's#/[^/]*$##' | execdir set travis

run command

$ execdir run pypi python setup.py sdist upload
$ execdir run npmjs npm publish
2019.3.22

5 years ago

2019.2.25

5 years ago

2019.2.22

5 years ago

2019.2.21

5 years ago

2019.2.20

5 years ago