From f855d4d5512a7ae0ef133d456754ca1582b08912 Mon Sep 17 00:00:00 2001 From: Valentin Lab Date: Fri, 1 Nov 2024 12:06:22 +0100 Subject: [PATCH] new: [compose-core] improve the help message of ``compose status`` command --- bin/compose-core | 35 ++++++++++++++++++++--------------- 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/bin/compose-core b/bin/compose-core index ea45cc8..d7fa291 100755 --- a/bin/compose-core +++ b/bin/compose-core @@ -5302,21 +5302,26 @@ These are the compose's columns: ${state_inner_cols[@]}. Usage: status [options] [SERVICE...] Options: - -h, --help Print this message and quit - -a, --all Display status of all services - (removes all filter, and will add a - 'root' first column by default) - -c, --column Column to display, can provide several - separated by commas, or option can be repeated. - (default: ${state_columns_default_msg}) - -f, --filter Filter services by a key=value pair, - separated by commas or can be repeated. - (default: --filter root=yes) - - -r, --raw Raw data output (no colors nor alignement) - - -0 Separate field with NUL char. Implies raw - data output. + -h, --help Print this message and quit + + -a, --all Display status of all services (removes all + filter, and will add a 'root' first column by + default) + + -c, --column Columns to display, can provide several separated + by commas, or option can be repeated. You can add + a sign prefix to the name of the column to force + the alignment of the column (+: right, -: left), + (default: ${state_columns_default_msg}) + + -f, --filter Filter services by a key=value pair, + separated by commas or can be repeated. + (default: --filter root=yes) + + -r, --raw Raw data output (no colors nor alignment) + + -0 Separate field with NUL char. Implies raw data + output. " while read-0 arg; do