29 lines
468 B
Bash
29 lines
468 B
Bash
#!/usr/bin/env bash
|
|
# commands/runtime/logs.command.sh
|
|
|
|
function cmd::runtime::logs::on_load() {
|
|
flag::register \
|
|
--follow \
|
|
--debug
|
|
}
|
|
|
|
function cmd::runtime::logs::run() {
|
|
flag::parse "$@" || { cmd::runtime::logs::help; return 1; }
|
|
runtime::logs
|
|
}
|
|
|
|
function cmd::runtime::logs::help() {
|
|
cat <<EOF
|
|
Usage: dx logs [flags]
|
|
|
|
Tails stack logs.
|
|
|
|
Flags:
|
|
--follow Follow log output
|
|
--debug Shell trace
|
|
|
|
Examples:
|
|
dx logs
|
|
dx logs --follow
|
|
EOF
|
|
}
|