Update dotfiles.sh help function to reflect the new options

This commit is contained in:
Riyyi
2019-05-10 15:58:46 +02:00
parent 6b6b571bcb
commit cef7b7133c
+21 -18
View File
@@ -17,6 +17,7 @@ FILES="$(find . -type f \
help() { help() {
B=$(tput bold) B=$(tput bold)
U=$(tput smul)
N=$(tput sgr0) N=$(tput sgr0)
cat << EOF cat << EOF
@@ -24,31 +25,33 @@ ${B}NAME${N}
dotfiles - file copy script for the dotfiles repository dotfiles - file copy script for the dotfiles repository
${B}SYNOPSIS${N} ${B}SYNOPSIS${N}
./dotfiles.sh <command> [<args>] ./dotfiles.sh <OPTIONS> [<ARG>]
${B}COMMANDS${N} ${B}OPTIONS${N}
${B}list${N} ${B}-a${N} ${U}FILE${N}, ${B}--add${N} ${U}FILE${N}
Print all files added to the dotfiles directory.
${B}get <filepath>${N}
Add file to the dotfiles directory. Add file to the dotfiles directory.
${B}pull${N} ${B}-f, --files${N}
For each file in the dotfiles directory, copy that file on the system to Display all files added to the dotfiles directory.
the dotfiles directory.
${B}push${N} ${B}-h, --help${N}
For each file in the dotfiles directory, copy that file to its location Display usage message and exit.
on the system.
${B}packages [list]${N} ${B}-p${N} [${U}ARG${N}], ${B}--packages${N} [${U}ARG${N}]
List all the packages installed on the system. ${B}install${N}
Install all core packages of the stored list.
${B}packages store${N} ${B}list${N} (default)
Store the list of all the installed packages on the system. Display all packages installed on the system.
${B}packages install${N} ${B}store${N}
Install all the core packages of the stored list. Stores a list of all installed packages on the system.
${B}-l, --pull${N}
Pull each added file from the system to the dotfiles directory.
${B}-s, --push${N}
Push each added file to its location on the system.
EOF EOF
} }