Skip to content

Commit

Permalink
Heredoc help (#372)
Browse files Browse the repository at this point in the history
* Better way to format help

* improved formatting to patch previous

Co-authored-by: DiogoConstantino <diogoconstantino@ubuntu.com>
  • Loading branch information
DiogoConstantino and DiogoConstantino committed Jul 23, 2022
1 parent b4c9d7c commit e6f39f9
Showing 1 changed file with 50 additions and 18 deletions.
68 changes: 50 additions & 18 deletions deb-get
Expand Up @@ -2,31 +2,63 @@
LC_ALL=C

function usage() {
echo -e "Usage
cat <<HELP
Usage
deb-get {update | upgrade | show pkg | install pkg | reinstall pkg | remove pkg
| purge pkg | search pkg | cache | clean | list | prettylist | csvlist | help | version}
| purge pkg | search pkg | cache | clean | list | prettylist | csvlist | help | version}
deb-get provides a high-level commandline interface for the package management
system to easily install and update packages published in 3rd party apt
repositories or via direct download.
update\n\tupdate is used to resynchronize the package index files from their sources.\n
upgrade\n\tupgrade is used to install the newest versions of all packages currently installed on the system.\n
install\n\tinstall is followed by one package desired for installation or upgrading.\n
reinstall\n\treinstall is followed by one package desired for reinstallation.\n
remove\n\tremove is identical to install except that packages are removed instead of installed.\n
purge\n\tpurge is identical to remove except that packages are removed and purged (any configuration files are deleted too).\n
clean\n\tclean clears out the local repository (/var/cache/deb-get) of retrieved package files.\n
search\n\tsearch for the given regex(7) term(s) from the list of available packages supported by deb-get and display matches.\n
show\n\tshow information about the given package including its install source and update mechanism.\n
list\n\tlist the packages available via deb-get.\n
prettylist\n\tmarkdown formatted list the packages available via deb-get. Use this to update README.md\n
csvlist\n\tcsv formatted list the packages available via deb-get. Use this with 3rd party wrappers.\n
cache\n\tlist the contents of the deb-get cache (/var/cache/deb-get)\n
help\n\tshow this help\n
version\n\tshow deb-get version\n
"
update
update is used to resynchronize the package index files from their sources.
upgrade
upgrade is used to install the newest versions of all packages currently installed on the system.
install
install is followed by one package desired for installation or upgrading.
reinstall
reinstall is followed by one package desired for reinstallation.
remove
remove is identical to install except that packages are removed instead of installed.
purge
purge is identical to remove except that packages are removed and purged (any configuration files are deleted too).
clean
clean clears out the local repository (/var/cache/deb-get) of retrieved package files.
search
search for the given regex(7) term(s) from the list of available packages supported by deb-get and display matches.
show
show information about the given package including its install source and update mechanism.
list
list the packages available via deb-get.
prettylist
markdown formatted list the packages available via deb-get. Use this to update README.md
csvlist
csv formatted list the packages available via deb-get. Use this with 3rd party wrappers.
cache
list the contents of the deb-get cache (/var/cache/deb-get)
help
show this help
version
show deb-get version
HELP
}

# https://github.com/wimpysworld/deb-get/issues/126
Expand Down

0 comments on commit e6f39f9

Please sign in to comment.