couleuvre

package module
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2023 License: GPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseCommand added in v0.2.0

func ParseCommand(cmds []Command, cmd string) (found string, err error)

Types

type App added in v0.3.0

type App struct {
	// String to use as prefix for environment variables parsing
	EnvPrefix string

	// String to replace for environment variables parsing
	EnvReplaceFrom string

	// String to replace to for environment variables parsing
	EnvReplaceTo string
}

func NewApp added in v0.3.0

func NewApp(envPrefix, envReplaceFrom, envReplaceTo string) (a App)

func (App) Parse added in v0.3.0

func (a App) Parse(destination any) (err error)

type Command added in v0.2.0

type Command struct {
	// flag.FlagSet
	Name    string
	Aliases []string
}

func (Command) String added in v0.2.0

func (c Command) String() string

Jump to

Keyboard shortcuts

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