Documentation ¶
Index ¶
- Variables
- func ArrayContains(arr []string, target string) bool
- func ArrayToMapNamesIntersection(reqFieldNames []string, resultMap map[string]interface{}) ([]string, error)
- func Execute()
- func OPrintFormatted(reqFieldNames []string, jsonString string, printHeader bool) error
- func OPrintStruct(reqFieldNames []string, strct interface{}, printHeader bool) error
Constants ¶
This section is empty.
Variables ¶
View Source
var OutFormat []string
OutFormat an array of user supplied fields to determine columns displayed for formatted output
Functions ¶
func ArrayContains ¶
ArrayContains returns true if []string contains the target string
func ArrayToMapNamesIntersection ¶
func ArrayToMapNamesIntersection(reqFieldNames []string, resultMap map[string]interface{}) ([]string, error)
ArrayToMapNamesIntersection returns the intersection of two arrays
func Execute ¶
func Execute()
Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.
func OPrintFormatted ¶
OPrintFormatted prints formatted header or formatted header+values of a json string based on json field names
func OPrintStruct ¶
OPrintStruct prints formatted header or formatted header+values of an arbitrary structure based on JSON field names
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.