arg

package
v0.0.0-...-1908093 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LibKeyGit2Go = LibKey("git2go")
	LibKeyGoGit  = LibKey("go-git")
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Key

type Key string

func ComposeKey

func ComposeKey(lib LibKey, para ParameterKey) Key

type LibKey

type LibKey string

type LibWrapper

type LibWrapper struct {
	// contains filtered or unexported fields
}

func (LibWrapper) Get

func (w LibWrapper) Get(para ParameterKey) string

func (LibWrapper) GetBool

func (w LibWrapper) GetBool(para ParameterKey) bool

func (LibWrapper) GetInt

func (w LibWrapper) GetInt(para ParameterKey) int

func (LibWrapper) MustGet

func (w LibWrapper) MustGet(para ParameterKey) (v string, err error)

type Map

type Map map[Key]*string

func OneLineMap

func OneLineMap(k ParameterKey, v *string) Map

func RegisterCommonFlags

func RegisterCommonFlags(flagSet *pflag.FlagSet, flags []ParameterKey) Map

func RegisterFlags

func RegisterFlags(flagSet *pflag.FlagSet, git2go, gogit []ParameterKey) Map

func (Map) Get

func (arg Map) Get(para ParameterKey) string

func (Map) Git2GoWrapper

func (arg Map) Git2GoWrapper() *LibWrapper

func (Map) GoGitWrapper

func (arg Map) GoGitWrapper() *LibWrapper

type ParameterKey

type ParameterKey string

type RequisiteFailed

type RequisiteFailed struct {
	// contains filtered or unexported fields
}

func (RequisiteFailed) Error

func (r RequisiteFailed) Error() string

Jump to

Keyboard shortcuts

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