Skip to main content

run command from multiple directories

Project description


$ [sudo] pip install execdir

How it works

  1. create list of directories
  2. run command


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

$ export EXECDIR=~/Library/execdir

Scripts usage

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


set directories

# ~/git/owner/repo
$ find ~/git -type d -maxdepth 2 | execdir set all
$ find ~/git -name "" -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 sdist upload
$ execdir run npmjs npm publish


Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for execdir, version 2019.4.13
Filename, size & hash File type Python version Upload date
execdir-2019.4.13.tar.gz (2.5 kB) View hashes Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page