package
0.0.0-20241018223127-a062be16fda2
Repository: https://github.com/activestate/cli.git
Documentation: pkg.go.dev
# Functions
Get is here for legacy use-cases, DO NOT USE IT FOR NEW CODE.
New constructs a new Outputer according to the given format name.
No description provided by the author
NewJSON constructs a new JSON struct.
NewPlain constructs a new Plain struct.
NewSimple constructs a new Simple struct.
No description provided by the author
No description provided by the author
No description provided by the author
# Constants
alias of "json".
EmptyNil replaces nil values with the empty string.
HideDash hides the dash in table output.
HidePlain hides the field value in table output.
plain json.
OmitEmpty omits empty values from output.
OmitKey hides the current struct key from output, its value is still printed.
human readable.
SeparateLineOpt requests table output to be printed on a separate line (without columns).
ShiftColsPrefix starts the column after the set qty.
human readable without notice level.
Behavior tokens.
No description provided by the author
No description provided by the author
No description provided by the author
VerticalTable requests a table be output vertically.
# Variables
No description provided by the author
No description provided by the author
# Structs
Config is the thing we pass to Outputer constructors.
No description provided by the author
JSON is our JSON outputer, there's not much going on here, just forwards it to the JSON marshaller and provides a basic structure for error.
No description provided by the author
Plain is our plain outputer, it uses reflect to marshal the data.
Simple is an outputer that works exactly as Plain without any notice level output.
No description provided by the author
StructuredError communicates that an error happened due to output that was meant to be structured but wasn't.
# Interfaces
No description provided by the author
Outputer is the initialized formatter.
No description provided by the author