Browse Source

Update dotfiles.sh help function to reflect the new options

master
Riyyi 5 years ago
parent
commit
cef7b7133c
  1. 39
      dotfiles.sh

39
dotfiles.sh

@ -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}-h, --help${N}
Display usage message and exit.
${B}-p${N} [${U}ARG${N}], ${B}--packages${N} [${U}ARG${N}]
${B}install${N}
Install all core packages of the stored list.
${B}push${N} ${B}list${N} (default)
For each file in the dotfiles directory, copy that file to its location Display all packages installed on the system.
on the system.
${B}packages [list]${N} ${B}store${N}
List all the packages installed on the system. Stores a list of all installed packages on the system.
${B}packages store${N} ${B}-l, --pull${N}
Store the list of all the installed packages on the system. Pull each added file from the system to the dotfiles directory.
${B}packages install${N} ${B}-s, --push${N}
Install all the core packages of the stored list. Push each added file to its location on the system.
EOF EOF
} }

Loading…
Cancel
Save