sndev logs command

This commit is contained in:
keyan 2024-04-02 15:00:45 -05:00
parent 77080f5acd
commit e2c7f4aa58
1 changed files with 23 additions and 4 deletions

27
sndev
View File

@ -83,7 +83,7 @@ help="
start the sndev env
USAGE
$ sndev start [OPTIONS]
$ sndev start [OPTIONS] [SERVICE...]
OPTIONS"
@ -101,7 +101,7 @@ help="
stop the sndev env
USAGE
$ sndev stop [OPTIONS]
$ sndev stop [OPTIONS] [SERVICE...]
OPTIONS"
@ -119,7 +119,7 @@ help="
restart the sndev env
USAGE
$ sndev restart [OPTIONS]
$ sndev restart [OPTIONS] [SERVICE...]
OPTIONS"
@ -127,6 +127,24 @@ OPTIONS"
docker__compose restart --help | awk '/Options:/{y=1;next}y'
}
sndev__logs() {
shift
docker__compose logs "$@"
}
sndev__help_logs() {
help="
get logs from sndev env
USAGE
$ sndev logs [OPTIONS] [SERVICE...]
OPTIONS"
echo "$help"
docker__compose logs --help | awk '/Options:/{y=1;next}y'
}
sndev__status() {
shift
if [ $# -eq 0 ]; then
@ -141,7 +159,7 @@ help="
show container status of sndev env
USAGE
$ sndev status [OPTIONS]
$ sndev status [OPTIONS] [SERVICE...]
OPTIONS"
@ -376,6 +394,7 @@ COMMANDS
stop stop env
restart restart env
status status of env
logs logs from env
delete delete env
sn: