cli

package
v0.0.0-...-2d58911 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultConfig

func DefaultConfig() map[string]any

DefaultConfig returns the default configuration.

func Execute

func Execute(version string) error

Execute runs the CLI with the given version string.

Types

type BuildInfo

type BuildInfo struct {
	Version   string
	GoVersion string
	OS        string
	Arch      string
	Commit    string
	BuildTime string
}

BuildInfo holds version and build information.

func GetBuildInfo

func GetBuildInfo(version string) BuildInfo

GetBuildInfo returns the current build information.

type RootOpts

type RootOpts struct {
	Token    string
	JSONOut  bool
	Quiet    bool
	Verbose  bool
	Config   string
	LogFile  string
	LogLevel string
}

RootOpts holds global CLI options.

Jump to

Keyboard shortcuts

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