diff options
author | Daniel Baumann <daniel.baumann@open-infrastructure.net> | 2016-12-11 11:34:55 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@open-infrastructure.net> | 2016-12-11 12:13:00 +0000 |
commit | f64e4e06f0d06bde27e4dc8f030a7c92d5203c1e (patch) | |
tree | 0c454bda2a3ba956454ef7db164a14323913aaae /share | |
parent | Adding JSON export format to container list command. (diff) | |
download | compute-tools-f64e4e06f0d06bde27e4dc8f030a7c92d5203c1e.tar.xz compute-tools-f64e4e06f0d06bde27e4dc8f030a7c92d5203c1e.zip |
Adding nwdiag export format to container list command.
Signed-off-by: Daniel Baumann <daniel.baumann@open-infrastructure.net>
Diffstat (limited to '')
-rw-r--r-- | share/bash-completion/container | 2 | ||||
-rw-r--r-- | share/man/container-list.1.txt | 14 |
2 files changed, 14 insertions, 2 deletions
diff --git a/share/bash-completion/container b/share/bash-completion/container index 3b0e033..abdd89a 100644 --- a/share/bash-completion/container +++ b/share/bash-completion/container @@ -139,7 +139,7 @@ _container() ;; -f|--format) - opts="cli csv json shell" + opts="cli csv json nwdiag 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 488b718..f19d2ef 100644 --- a/share/man/container-list.1.txt +++ b/share/man/container-list.1.txt @@ -50,11 +50,17 @@ The following container options are available, defaults to *--started --stopped* Specify custom CSV separator, defaults to ','. *-f, --format='FORMAT'*:: - Use format to list container. Currently available formats are 'cli' (default), 'csv', 'json', or 'shell'. + Use format to list container. Currently available formats are 'cli' (default), 'csv', 'json', 'nwdiag', 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. +*--nwdiag-color='COLOR'*:: + Specify custom nwdiag color for the host box, defaults to '#3465a4'. + +*--nwdiag-label='LABEL'*:: + Specify custom nwdiag label for the diagram, defaults to empty. + *-o, --other*:: List only container that are not enable for automatic start on the current system. @@ -78,6 +84,12 @@ EXAMPLES *Create a JSON export of all started and stopped containers:*:: sudo container list -f json +*Create a nwdiag export of all started and stopped containers:*:: + sudo container list -f nwdiag + +*Create a SVG image via nwdiag of all started and stopped containers:*:: + sudo container list -f nwdiag | nwdiag -T svg -o cnt-list.svg - + *Create a shell export of all started and stopped containers:*:: sudo container list -f shell |