compile

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2022 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compile

func Compile(cmd interface{}) ([]OptionalParam, []RequiredParam)

func FindOptionalParam

func FindOptionalParam(params []OptionalParam, key string) int

func UsesEnvironmentVariables

func UsesEnvironmentVariables(params []OptionalParam) bool

Types

type OptionalParam

type OptionalParam struct {
	Name  string
	Value reflect.Value

	Short       string
	Long        string
	Env         string
	IsBoolFlag  bool
	Description string
}

type RequiredParam

type RequiredParam struct {
	Name  string
	Value reflect.Value

	Description string
}

Jump to

Keyboard shortcuts

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