Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInvalidFormat invalid output format. ErrInvalidFormat = fmt.Errorf("invalid format (valid options: base, yaml, json, export, markdown)") )
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*Printer)
Option list of available options for modifying the output.
func ToFormat ¶
func ToFormat(format OutputFormat) Option
ToFormat sets the output format of the printer.
func WithWriter ¶
WithWriter option for passing a custom io.Writer.
type OutputFormat ¶
type OutputFormat int
OutputFormat enum of valid output formats.
const ( // Base prints the secrets in the default format. Base OutputFormat = iota // YAML prints the secrets in yaml format. YAML // JSON prints the secrets in json format. JSON )
Click to show internal directories.
Click to hide internal directories.