Improve runtipi dls output (uppercase headers)
This commit is contained in:
parent
954a6935ac
commit
ba135cde97
|
@ -58,8 +58,8 @@ dls() {
|
||||||
local base='{{.Status}}\t{{.ID}}\t{{.Names}}\t{{.Image}}' #'\t{{.Networks}}\t{{.Ports}}\t{{.Mounts}}'
|
local base='{{.Status}}\t{{.ID}}\t{{.Names}}\t{{.Image}}' #'\t{{.Networks}}\t{{.Ports}}\t{{.Mounts}}'
|
||||||
local compose='{{.Label "com.docker.compose.project"}}\t{{.Label "com.docker.compose.service"}}'
|
local compose='{{.Label "com.docker.compose.project"}}\t{{.Label "com.docker.compose.service"}}'
|
||||||
local format="table $compose\t$base"
|
local format="table $compose\t$base"
|
||||||
ROOT_EXEC=1 jlmkr-exec \
|
ROOT_EXEC=1 QUIET=${QUIET:-0} jlmkr-exec \
|
||||||
docker "container ls --all --format '$format' | ( sed -u 1q ; sed -Ee 's|^|555|; s|^555runtipi|000runtipi|;' | sort | sed -Ee 's/^[[:digit:]]{3}//' )"
|
docker "container ls --all --format '$format' | ( sed -u '1s/.*/\U&/; q'; sed -Ee 's|^|555|; s|^555runtipi|000runtipi|;' | sort | sed -Ee 's/^[[:digit:]]{3}//' )"
|
||||||
}
|
}
|
||||||
|
|
||||||
case "${1}" in
|
case "${1}" in
|
||||||
|
@ -108,6 +108,7 @@ case "${1}" in
|
||||||
"" "" "" \
|
"" "" "" \
|
||||||
"" "cli" "runtipi-cli" \
|
"" "cli" "runtipi-cli" \
|
||||||
"" "dcoapp" "docker compose for runtipi apps" \
|
"" "dcoapp" "docker compose for runtipi apps" \
|
||||||
|
"" "dls" "stylized docker ls" \
|
||||||
"" "docker" "docker" \
|
"" "docker" "docker" \
|
||||||
"" "dockge" "dokcer compose for dockge stacks" \
|
"" "dockge" "dokcer compose for dockge stacks" \
|
||||||
"" "exec" "execute within the shell, START_DIR env applies" \
|
"" "exec" "execute within the shell, START_DIR env applies" \
|
||||||
|
|
Loading…
Reference in New Issue