categories de host #3

Open
maxime-alves wants to merge 3 commits from (deleted):tagging_hosts into master
Showing only changes of commit 9f6aa2b39f - Show all commits

added help for tagging

\/\/ \-/ ❭❬ 2019-11-05 15:10:06 +00:00

9
mhssh
View file

@ -17,6 +17,8 @@
# Host list path (file should contains hosts seperated by $IFS )
# You can specify multiple tags [a-z0-9] for each host, so you can filter easier
# which hosts to work on
hosts="$HOME/.config/mhssh.hosts"
red=$(tput setaf 1)
@ -28,8 +30,11 @@ dtch=''
usage() {
echo "Run a single command on multiple hosts"
echo "Usage : $0 [-h|--help] [-n|--no-color] [-B|--background] [-D|--detach] CMD ..."
echo -e "\n\t-h --help\tprint this help\n\t-n --no-color\tdisable colors\n\t-B --background\tput the task in background\n\t-D --detach\tuse dtach to put the task in background\n\n"
echo "Usage : $0 [-h|--help] [-n|--no-color] [-B|--background] [-D|--detach]
[-t|--tags tags] CMD ..."
echo -e "\n\t-h --help\tprint this help\n\t-n --no-color\tdisable
colors\n\t-B --background\tput the task in background\n\t-D --detach\tuse
dtach to put the task in background\n\t-t --tags tags\n\n"
echo "Host list configured to be found in '$hosts'"
}