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
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
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.25.tar.gz
(2.3 kB
view hashes)
Built Distribution
Close
Hashes for execdir-2019.2.25-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48f2487ebcae94adbd3d030722733127cdd2e09e6c716b338c8c1080e71de524 |
|
MD5 | a895aedeb2b7cf548dbea532a460900e |
|
BLAKE2b-256 | d2d0b2cc9466afea366242aebb1dd6055a75e017aaadb0f263592b9fd1d4d925 |