Documentation ¶ Index ¶ type Condition func Of(conditions ...Condition) Condition type Macro func MacroI[A any](f func(arg A) Condition) Macro func MacroN(f func() Condition) Macro func MacroV[A any](f func(args ...A) Condition) Macro func (m Macro) Parse(s string) Condition func (m Macro) WithDescription(s string) Macro Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Condition ¶ type Condition func(c carapace.Context) bool func Of ¶ func Of(conditions ...Condition) Condition Of combines different conditions. type Macro ¶ type Macro struct { macro.Macro[Condition] Description string } func MacroI ¶ func MacroI[A any](f func(arg A) Condition) Macro func MacroN ¶ func MacroN(f func() Condition) Macro func MacroV ¶ func MacroV[A any](f func(args ...A) Condition) Macro func (Macro) Parse ¶ func (m Macro) Parse(s string) Condition func (Macro) WithDescription ¶ func (m Macro) WithDescription(s string) Macro Source Files ¶ View all Source files condition.go macro.go Click to show internal directories. Click to hide internal directories.