sndev logs command

This commit is contained in:
keyan 2024-04-02 15:00:45 -05:00
parent 77080f5acd
commit e2c7f4aa58

27
sndev
View File

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