run command from multiple directories
Project description
run command from multiple directories
Install
$ [sudo] pip install execdir
How it works
- create list of directories
- 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
get print 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
$ execdir set all "$(find ~/git -type d -maxdepth 2)"
$ execdir set pypi "$(find ~/git -name "setup.py" -maxdepth 3 | sed 's#/[^/]*$##')"
$ execdir set npmjs "$(find ~/git -name "package.json" -maxdepth 3 | sed 's#/[^/]*$##')"
$ execdir set travis "$(find ~/git -name ".travis.yml" -maxdepth 3 | sed 's#/[^/]*$##')"
run command
$ execdir run pypi python setup.py sdist upload
$ execdir run npmjs npm publish
readme-md - README.md generator
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
execdir-2019.2.22.tar.gz
(2.0 kB
view hashes)
Built Distribution
Close
Hashes for execdir-2019.2.22-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8ed73eb6e855b198bb911c62d10df551f8009aef8a2a111e696e00aa0257353 |
|
MD5 | 555526ac80dc63998e4e0dd6e30acba2 |
|
BLAKE2b-256 | ee9dcbfa61d96005c9017b6e611528e30db1b7f2fb510ad2d8f39ec90c57944c |