Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsOptionError ¶
IsOptionError reports whether err came from option validation.
func PrepareArguments ¶
PrepareArguments preserves Facter's command precedence: known command flags are moved before normal flags, and bare fact names become query arguments.
func SupportedLogLevel ¶
SupportedLogLevel reports whether level is accepted by Ruby-compatible log-level validation.
func ValidateOptions ¶
ValidateOptions reports invalid option combinations before command execution, matching Ruby Facter's validator.
Types ¶
type OptionError ¶
type OptionError struct {
Err error
}
OptionError identifies command-line option validation failures.
func (*OptionError) Error ¶
func (oe *OptionError) Error() string
func (*OptionError) Unwrap ¶
func (oe *OptionError) Unwrap() error
Click to show internal directories.
Click to hide internal directories.