app

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AppRevision string
View Source
var AppVersion string
View Source
var HELP string
View Source
var Help = help.CmdHelp{
	HelpTxt: HELP,
	HelpCtx: func(name string) any {
		return map[string]interface{}{
			"Cmd":     name,
			"Version": Version(),
		}
	},
}
View Source
var HelpDict = help.HelpDict{
	"init": new.Help,
	"list": list.Help,
}

Functions

func Version

func Version() string

func VersionAndExit

func VersionAndExit()

Types

type AppArgs

type AppArgs struct {
	OnHelp    func() `long:"help" short:"h"`
	OnVersion func() `long:"version"`
	// contains filtered or unexported fields
}

func NewAppArgs

func NewAppArgs() *AppArgs

func (*AppArgs) ParseAndRun

func (a *AppArgs) ParseAndRun(args []string) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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