Skip to content

Commit

Permalink
docs: document available commands in help function
Browse files Browse the repository at this point in the history
  • Loading branch information
vednoc committed Sep 28, 2020
1 parent 7b5a857 commit d003297
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions pkg
Original file line number Diff line number Diff line change
@@ -1,8 +1,29 @@
#!/usr/bin/env sh

help() {
echo "pkg help -- work in progress"
# TODO: Add documentation.
echo "\
Usage:
pkg [options] [target]
Example:
pkg search package
pkg info package
pkg upgrade
Options:
help print this message
info see package info
install install a package
list show all packages in local repository
search search for a package in repositories
upgrade perform full system upgrade
version show version of this tool
Version:
0.1.0
Source:
https://github.com/vednoc/pkg"
}

info() {
Expand Down

0 comments on commit d003297

Please sign in to comment.