cli

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2026 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AppVersion = "dev"

AppVersion is the application version, set at build time via ldflags.

Functions

func RunCLI

func RunCLI(opts Options) bool

RunCLI executes the CLI action. Returns true if the action was handled (program should exit), false if TUI should launch.

Types

type Options

type Options struct {
	Action       action
	ExportShell  string // "bash", "fish", "powershell", "json"
	ExportFilter string // "all", "modified"
	SetPairs     []string
	GetKey       string
}

Options holds parsed CLI flags.

func ParseCLI

func ParseCLI(args []string) Options

ParseCLI parses command-line arguments and returns the action to take. Returns actionTUI if no flags are provided (default behavior).

Jump to

Keyboard shortcuts

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