Format the Outputs of Get Commands
Formatting get Command Outputs¶
Output of get envs
, get apis
, get api-products
and get apps
can be formatted with Go Templates.
Available formatting options¶
Name | Usage | Example |
---|---|---|
table | This is the default format and the output is displayed as a table |
wzxhzdk:0
|
json | Output is formatted as JSON |
wzxhzdk:1
|
jsonArray | Outputs a human-readable JSON Array with indented by 2 spaces |
wzxhzdk:2
|
jsonPretty | Outputs a human-readable JSON with indented by 2 spaces |
wzxhzdk:3
|
upper | Convert string to uppercase |
wzxhzdk:4
|
lower | Convert string to lowercase |
wzxhzdk:5
|
title | Convert the first letter to uppercase of a string |
wzxhzdk:6
|