{"modulePath":"github.com/bborbe/vault-cli","version":"v0.201.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package cli\n\n## Variables\n\n```go\nvar AvailableOutputFormats = OutputFormats{\n\tOutputFormatPlain,\n\tOutputFormatJSON,\n}\n```\nAvailableOutputFormats lists all valid output format values.\n\n## Functions\n\n```go\nfunc Execute()\n```\nExecute is the main entry point for the CLI.\n\n```go\nfunc NewRootCommand(ctx context.Context) *cobra.Command\n```\nNewRootCommand builds and returns the root cobra command for vault-cli. Callers can set args and I/O streams before calling ExecuteContext.\n\n```go\nfunc PrintJSON(v any) error\n```\nPrintJSON prints any value as formatted JSON to stdout.\n\n```go\nfunc Run(ctx context.Context, args []string) error\n```\nRun executes the CLI application.\n\n## Types\n\n```go\ntype OutputFormat string\n```\nOutputFormat represents the output format for CLI commands.\n\n```go\nconst (\n\t// OutputFormatPlain represents plain text output.\n\tOutputFormatPlain OutputFormat = \"plain\"\n\t// OutputFormatJSON represents JSON output.\n\tOutputFormatJSON OutputFormat = \"json\"\n)\n```\n\n```go\nfunc (f OutputFormat) IsJSON() bool\n```\nIsJSON returns true if the format is JSON.\n\n```go\nfunc (f OutputFormat) IsPlain() bool\n```\nIsPlain returns true if the format is plain text.\n\n```go\nfunc (f OutputFormat) Validate(ctx context.Context) error\n```\nValidate returns an error if the format is not a valid value.\n\n```go\ntype OutputFormats []OutputFormat\n```\nOutputFormats is a collection of OutputFormat values.\n\n```go\nfunc (f OutputFormats) Contains(format OutputFormat) bool\n```\nContains returns true if the collection contains the given format.\n\n","path":"github.com/bborbe/vault-cli/pkg/cli","name":"cli","synopsis":"","isRedistributable":true}
