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 committed 2013-11-21 00:02:02 +00:00
1 parent 9953030478
commit 252b1ed8b6
2 files changed
+14 -2

No files matched your search

+8
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
;;