Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AvailableOutputFormats = OutputFormats{ OutputFormatPlain, OutputFormatJSON, }
AvailableOutputFormats lists all valid output format values.
Functions ¶
func NewRootCommand ¶ added in v0.63.0
NewRootCommand builds and returns the root cobra command for vault-cli. Callers can set args and I/O streams before calling ExecuteContext.
Types ¶
type OutputFormat ¶ added in v0.106.2
type OutputFormat string
OutputFormat represents the output format for CLI commands.
const ( // OutputFormatPlain represents plain text output. OutputFormatPlain OutputFormat = "plain" // OutputFormatJSON represents JSON output. OutputFormatJSON OutputFormat = "json" )
func (OutputFormat) IsJSON ¶ added in v0.106.2
func (f OutputFormat) IsJSON() bool
IsJSON returns true if the format is JSON.
func (OutputFormat) IsPlain ¶ added in v0.106.2
func (f OutputFormat) IsPlain() bool
IsPlain returns true if the format is plain text.
type OutputFormats ¶ added in v0.106.2
type OutputFormats []OutputFormat
OutputFormats is a collection of OutputFormat values.
func (OutputFormats) Contains ¶ added in v0.106.2
func (f OutputFormats) Contains(format OutputFormat) bool
Contains returns true if the collection contains the given format.
Click to show internal directories.
Click to hide internal directories.