mirror of
https://github.com/dokku/dokku.git
synced 2025-12-29 00:25:08 +01:00
32 lines
773 B
Bash
Executable File
32 lines
773 B
Bash
Executable File
#!/usr/bin/env bash
|
|
[[ " help logs:help " == *" $1 "* ]] || exit "$DOKKU_NOT_IMPLEMENTED_EXIT"
|
|
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
|
|
|
|
usage() {
|
|
declare desc="logs specific usage"
|
|
echo "Usage: dokku logs <app>"
|
|
echo " display recent log output"
|
|
echo ""
|
|
echo " -n, --num NUM # the number of lines to display"
|
|
echo " -p, --ps PS # only display logs from the given process"
|
|
echo " -t, --tail # continually stream logs"
|
|
echo " -q, --quiet # display raw logs without colors, time and names"
|
|
}
|
|
|
|
case "$1" in
|
|
logs:help)
|
|
usage
|
|
;;
|
|
|
|
help)
|
|
cat<<EOF
|
|
logs <app> [-h] [-t] [-n num] [-q] [-p process], Show the last logs for an application
|
|
EOF
|
|
;;
|
|
|
|
*)
|
|
exit "$DOKKU_NOT_IMPLEMENTED_EXIT"
|
|
;;
|
|
|
|
esac
|