condition

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

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