categories de host #3
1 changed files with 7 additions and 2 deletions
added help for tagging
commit
9f6aa2b39f
9
mhssh
9
mhssh
|
|
@ -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'"
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue