MCPcopy
hub / github.com/helm/helm / Writer

Interface Writer

pkg/cli/output/output.go:92–102  ·  view source on GitHub ↗

Writer is an interface that any type can implement to write supported formats

Source from the content-addressed store, hash-verified

90
91// Writer is an interface that any type can implement to write supported formats
92type Writer interface {
93 // WriteTable will write tabular output into the given io.Writer, returning
94 // an error if any occur
95 WriteTable(out io.Writer) error
96 // WriteJSON will write JSON formatted output into the given io.Writer,
97 // returning an error if any occur
98 WriteJSON(out io.Writer) error
99 // WriteYAML will write YAML formatted output into the given io.Writer,
100 // returning an error if any occur
101 WriteYAML(out io.Writer) error
102}
103
104// EncodeJSON is a helper function to decorate any error message with a bit more
105// context and avoid writing the same code over and over for printers.

Callers 6

WriteMethod · 0.65
WriteMethod · 0.65
WriteMethod · 0.65

Implementers 7

hubSearchWriterpkg/cmd/search_hub.go
statusPrinterpkg/cmd/status.go
repoListWriterpkg/cmd/repo_list.go
metadataWriterpkg/cmd/get_metadata.go
repoSearchWriterpkg/cmd/search_repo.go
valuesWriterpkg/cmd/get_values.go
releaseListWriterpkg/cmd/list.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…