Skip to main content

run command from multiple directories

Project description

Installation

$ [sudo] pip install execdir
$ [sudo] npm i -g 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

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

readme42.com

Project details


Download files

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

Source Distribution

execdir-2020.7.1.tar.gz (2.5 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page