#!/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 " 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< [-h] [-t] [-n num] [-q] [-p process], Show the last logs for an application EOF ;; *) exit "$DOKKU_NOT_IMPLEMENTED_EXIT" ;; esac