Documentation ¶
Overview ¶
Package common code
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CaptureStdout ¶ added in v0.13.0
func IsDash ¶ added in v0.13.0
IsDash checks if command contains a dash disabling flag parsing
example action positional1 -- dash1 dash2
func IsShorthandOnly ¶
IsShorthandOnly 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 RawValue ¶ added in v0.2.4
RawValue represents a completion candidate
func (RawValue) TrimmedDescription ¶ added in v0.5.8
TrimmedDescription returns the trimmed description
type RawValues ¶ added in v0.5.0
type RawValues []RawValue
RawValues is an alias for []RawValue
func RawValuesFrom ¶ added in v0.2.4
RawValuesFrom creates RawValues from given values
func (RawValues) FilterPrefix ¶ added in v0.5.0
FilterPrefix filters values with given prefix
Click to show internal directories.
Click to hide internal directories.