From 456efbfa13fb43f8394291aa18e878d8d3acbda1 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 11 Dec 2016 12:06:53 +0100 Subject: Adding CSV export format to container list command. Signed-off-by: Daniel Baumann --- share/bash-completion/container | 2 +- share/man/container-list.1.txt | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) (limited to 'share') diff --git a/share/bash-completion/container b/share/bash-completion/container index 9dcdbc3..13bcdf3 100644 --- a/share/bash-completion/container +++ b/share/bash-completion/container @@ -139,7 +139,7 @@ _container() ;; -f|--format) - opts="cli shell" + opts="cli csv shell" COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) return 0 ;; diff --git a/share/man/container-list.1.txt b/share/man/container-list.1.txt index 53603db..3e4498b 100644 --- a/share/man/container-list.1.txt +++ b/share/man/container-list.1.txt @@ -46,8 +46,11 @@ The following container options are available, defaults to *--started --stopped* *-a, --all*:: List all available container (started, stopped, and other). +*--csv-separator='SEPARATOR'*:: + Specify custom CSV separator, defaults to ','. + *-f, --format='FORMAT'*:: - Use format to list container. Currently available formats are 'cli' (default) or 'shell'. + Use format to list container. Currently available formats are 'cli' (default), 'csv', or 'shell'. *-h, --host='HOSTNAME'*:: List only container that are enabled for automatic start on the specified hostname. Defaults to list containers of the local system only. Using 'all' shows all container regardless of any automatic start configuration. @@ -69,6 +72,9 @@ EXAMPLES *List all started and other containers:*:: sudo container list -s -o +*Create a CSV export of all started and stopped containers:*:: + sudo container list -f csv + *Create a shell export of all started and stopped containers:*:: sudo container list -f shell -- cgit v1.2.3