Plugin "commands" should end with "cat" because the output of each plugin's command is piped through the next one by pluginhook
16 lines
238 B
Bash
Executable File
16 lines
238 B
Bash
Executable File
#!/bin/bash
|
|
set -e; case "$1" in
|
|
logs)
|
|
CONTAINER=$(</home/git/$2/CONTAINER)
|
|
docker logs $CONTAINER | tail -n 100
|
|
;;
|
|
|
|
help)
|
|
cat && cat<<EOF
|
|
logs <app> Show the last logs for an application
|
|
EOF
|
|
;;
|
|
|
|
esac
|
|
cat
|