Skip to content

Commit

Permalink
feat: add version command
Browse files Browse the repository at this point in the history
  • Loading branch information
vednoc committed Sep 28, 2020
1 parent 4e57be9 commit 7b5a857
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pkg
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ upgrade() {
esac
}

version() {
echo "pkg version 0.1.0"
}

# Determine which package manager to use.
if command -v pacman >/dev/null; then
PKG_MAN="pacman"
Expand Down Expand Up @@ -92,6 +96,10 @@ case "$1" in
upgrade "$@"
;;

-v|--version|version)
version
;;

*)
printf "Unknown option: %s\n\n" "$*"
help
Expand Down

0 comments on commit 7b5a857

Please sign in to comment.