common

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsShorthandOnly

func IsShorthandOnly(flag *pflag.Flag) bool

uses reflection to check for pflag.Flag.Shorthandonly to support both spf13/pflag and cornfeedhobos shorthand change (needed for carapace-bin) won't be necessary if https://github.com/spf13/pflag/pull/256 should ever be merged

Types

type Candidate

type Candidate struct {
	Value       string
	Display     string
	Description string
}

type Candidates

type Candidates []Candidate

func CandidateFromValues

func CandidateFromValues(values ...string) Candidates

Jump to

Keyboard shortcuts

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