MCPcopy Index your code
hub / github.com/coder/coder / DataChangeFormat

Struct DataChangeFormat

cli/cliui/output.go:215–218  ·  view source on GitHub ↗

DataChangeFormat allows manipulating the data passed to an output format. This is because sometimes the data needs to be manipulated before it can be passed to the output format. For example, you may want to pass something different to the text formatter than what you pass to the json formatter.

Source from the content-addressed store, hash-verified

213// For example, you may want to pass something different to the text formatter
214// than what you pass to the json formatter.
215type DataChangeFormat struct {
216 format OutputFormat
217 change func(data any) (any, error)
218}
219
220// ChangeFormatterData allows manipulating the data passed to an output
221// format.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected