cli

package
v0.7.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Args

type Args struct {
	// Indicates whether the application should exit right after
	// calling cli.Parse. Set to true if -h or -G options are used.
	ExitEarly bool `json:"exit_early"`

	// Parameters required for the main functionality.
	Params utils.Params `json:"params"`
}

Args struct binds, reads and validates all CLI arguments.

func Parse

func Parse(args []string) (Args, error)

Parse binds CLI options to the corresponding variables, parses user input and validates it. If args is nil, os.Args is used.

Jump to

Keyboard shortcuts

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