func DefaultConds() map[string]Cond { … }
func Condition(summary string, eval func(*State) (bool, error)) Cond { … }
type funcCond …
func (c *funcCond) Usage() *CondUsage { … }
func (c *funcCond) Eval(s *State, suffix string) (bool, error) { … }
func PrefixCondition(summary string, eval func(*State, string) (bool, error)) Cond { … }
type prefixCond …
func (c *prefixCond) Usage() *CondUsage { … }
func (c *prefixCond) Eval(s *State, suffix string) (bool, error) { … }
func BoolCondition(summary string, v bool) Cond { … }
type boolCond …
func (b *boolCond) Usage() *CondUsage { … }
func (b *boolCond) Eval(s *State, suffix string) (bool, error) { … }
func OnceCondition(summary string, eval func() (bool, error)) Cond { … }
type onceCond …
func (l *onceCond) Usage() *CondUsage { … }
func (l *onceCond) Eval(s *State, suffix string) (bool, error) { … }
func CachedCondition(summary string, eval func(string) (bool, error)) Cond { … }
type cachedCond …
func (c *cachedCond) Usage() *CondUsage { … }
func (c *cachedCond) Eval(_ *State, suffix string) (bool, error) { … }