Add a version command.

The git tag/revision is saved when running "make install", and can be
displayed using "dokku version".
This commit is contained in:
Paul Lietar
2013-11-21 00:01:38 +00:00
parent 9953030478
commit 252b1ed8b6
2 changed files with 14 additions and 2 deletions

View File

@@ -66,12 +66,20 @@ case "$1" in
fi
;;
version)
cat "$DOKKU_ROOT/VERSION" || {
echo "Unable to determine dokku's version" 2>&1
exit 1
}
;;
help)
cat && cat<<EOF
delete <app> Delete an application
logs <app> [-t] Show the last logs for an application (-t follows)
run <app> <cmd> Run a command in the environment of an application
url <app> Show the URL for an application
version Print dokku's version
EOF
;;