cli

package
v0.75.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 12, 2026 License: BSD-2-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OutputFormatPlain = "plain"
	OutputFormatJSON  = "json"
)

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute is the main entry point for the CLI.

func NewRootCommand added in v0.63.0

func NewRootCommand(ctx context.Context) *cobra.Command

NewRootCommand builds and returns the root cobra command for vault-cli. Callers can set args and I/O streams before calling ExecuteContext.

func PrintJSON added in v0.8.0

func PrintJSON(v any) error

PrintJSON prints any value as formatted JSON to stdout.

func Run

func Run(ctx context.Context, args []string) error

Run executes the CLI application.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL