Skip to main content

run command from multiple directories

Project description


$ [sudo] pip install execdir
$ [sudo] npm i -g execdir

How it works

  1. create list of directories
  2. run command


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

$ export EXECDIR=~/Library/execdir


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 2020.12.3
Filename, size File type Python version Upload date Hashes
Filename, size execdir-2020.12.3.tar.gz (2.5 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page