Documentation ¶
Index ¶
- func ConfigureCliCommands(context string, hc HasCommands, version string) (err error)
- func Environ() map[string]string
- func GuessOutputWidth(w io.Writer) int
- func IsTimeout(candidate error) bool
- func ToReadCloser(reader io.Reader) io.ReadCloser
- type CliFactory
- type EvaluatingPartMatcher
- type EvaluatingPartPredicate
- type EvaluatingPredicate
- func (instance *EvaluatingPredicate) EvaluatePatterns(patterns []string) error
- func (instance EvaluatingPredicate) IsRelevant() bool
- func (instance EvaluatingPredicate) MarshalJSON() ([]byte, error)
- func (instance EvaluatingPredicate) MarshalYAML() (interface{}, error)
- func (instance EvaluatingPredicate) Matches(data interface{}) (bool, error)
- func (instance EvaluatingPredicate) Patterns() []string
- func (instance *EvaluatingPredicate) Set(plain string) error
- func (instance EvaluatingPredicate) String() string
- func (instance *EvaluatingPredicate) UnmarshalJSON(b []byte) error
- func (instance *EvaluatingPredicate) UnmarshalYAML(unmarshal func(interface{}) error) error
- type HasCommands
- type HasFlags
- type Runnable
- type TimeoutError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigureCliCommands ¶
func ConfigureCliCommands(context string, hc HasCommands, version string) (err error)
func GuessOutputWidth ¶
func ToReadCloser ¶
func ToReadCloser(reader io.Reader) io.ReadCloser
Types ¶
type CliFactory ¶
type CliFactory interface {
ConfigureCliCommands(context string, hc HasCommands, version string) error
}
func RegisterCliFactory ¶
func RegisterCliFactory(cliFactory CliFactory) CliFactory
type EvaluatingPartMatcher ¶
type EvaluatingPartMatcher struct {
// contains filtered or unexported fields
}
func NewEvaluatingPartMatcher ¶
func NewEvaluatingPartMatcher(valueTemplate string, check string) (EvaluatingPartMatcher, error)
func ParseEvaluatingPartMatcher ¶
func ParseEvaluatingPartMatcher(plain string) (EvaluatingPartMatcher, error)
func (EvaluatingPartMatcher) IsRelevant ¶ added in v0.6.0
func (instance EvaluatingPartMatcher) IsRelevant() bool
func (EvaluatingPartMatcher) Matches ¶
func (instance EvaluatingPartMatcher) Matches(data interface{}) (bool, error)
func (EvaluatingPartMatcher) String ¶
func (instance EvaluatingPartMatcher) String() string
func (EvaluatingPartMatcher) Value ¶
func (instance EvaluatingPartMatcher) Value(data interface{}) (string, error)
type EvaluatingPartPredicate ¶
type EvaluatingPartPredicate []EvaluatingPartMatcher
func (EvaluatingPartPredicate) IsRelevant ¶ added in v0.6.0
func (instance EvaluatingPartPredicate) IsRelevant() bool
func (EvaluatingPartPredicate) Matches ¶
func (instance EvaluatingPartPredicate) Matches(data interface{}) (bool, error)
type EvaluatingPredicate ¶
type EvaluatingPredicate struct { Includes EvaluatingPartPredicate Excludes EvaluatingPartPredicate }
func (*EvaluatingPredicate) EvaluatePatterns ¶
func (instance *EvaluatingPredicate) EvaluatePatterns(patterns []string) error
func (EvaluatingPredicate) IsRelevant ¶ added in v0.6.0
func (instance EvaluatingPredicate) IsRelevant() bool
func (EvaluatingPredicate) MarshalJSON ¶
func (instance EvaluatingPredicate) MarshalJSON() ([]byte, error)
func (EvaluatingPredicate) MarshalYAML ¶
func (instance EvaluatingPredicate) MarshalYAML() (interface{}, error)
func (EvaluatingPredicate) Matches ¶
func (instance EvaluatingPredicate) Matches(data interface{}) (bool, error)
func (EvaluatingPredicate) Patterns ¶
func (instance EvaluatingPredicate) Patterns() []string
func (*EvaluatingPredicate) Set ¶
func (instance *EvaluatingPredicate) Set(plain string) error
func (EvaluatingPredicate) String ¶
func (instance EvaluatingPredicate) String() string
func (*EvaluatingPredicate) UnmarshalJSON ¶
func (instance *EvaluatingPredicate) UnmarshalJSON(b []byte) error
func (*EvaluatingPredicate) UnmarshalYAML ¶
func (instance *EvaluatingPredicate) UnmarshalYAML(unmarshal func(interface{}) error) error
type HasCommands ¶
type HasFlags ¶
type HasFlags interface {
Flag(name, help string) *kingpin.FlagClause
}
type TimeoutError ¶
type TimeoutError struct {
Message string
}
func NewTimeoutError ¶
func NewTimeoutError(message string, args ...interface{}) TimeoutError
func (TimeoutError) Error ¶
func (instance TimeoutError) Error() string
func (TimeoutError) String ¶
func (instance TimeoutError) String() string
Click to show internal directories.
Click to hide internal directories.