Add value only output formattter

It may be useful to have a value only output formatter to perform operationgs like:
   TOKEN=$(openstack token create -c id -f value)
Rather than:
   eval $(openstack token create -c id -f shell)
   TOKEN="${id}"

Change-Id: I7bda3cc1a1d154a05e8e31eed564dae1e82066d6
Closes-Bug: #1292578
This commit is contained in:
Terry Howe
2014-03-14 10:15:29 -06:00
parent b9f04372f0
commit 5503d3d006
3 changed files with 31 additions and 0 deletions

View File

@@ -33,6 +33,7 @@ cliff.formatter.list =
cliff.formatter.show =
table = cliff.formatters.table:TableFormatter
shell = cliff.formatters.shell:ShellFormatter
value = cliff.formatters.value:ValueFormatter
cliff.formatter.completion =
bash = cliff.complete:CompleteBash