Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Debug bool
Debug enables verbose debug output.
var ErrNoElements = errors.New("no elements found")
ErrNoElements indicates a selector matched no elements (informational, not an error).
var ErrNoEntriesInRange = errors.New("no entries in range")
ErrNoEntriesInRange indicates the specified range has no entries (informational, not an error).
var ErrNoMatches = errors.New("no matches found")
ErrNoMatches indicates a search found no matches (informational, not an error).
var ErrNoRules = errors.New("no rules found")
ErrNoRules indicates no CSS rules matched the selector pattern (informational, not an error).
var JSONOutput bool
JSONOutput enables JSON output format (default is text).
var NoColor bool
NoColor disables color output.
var Version = "dev"
Version is set at build time.
Functions ¶
func Execute ¶
func Execute() error
Execute runs the root command. Supports command abbreviation via unique prefix matching.
func ExecuteArgs ¶
ExecuteArgs runs a command with the given arguments. Used by the REPL to execute commands parsed from user input. Returns true if the command was recognized (even if it failed), false if unknown.
func IsPrintedError ¶
IsPrintedError returns true if the error has already been printed.
func ResetExecutorFactory ¶
func ResetExecutorFactory()
ResetExecutorFactory resets to the default factory.
func SetExecutorFactory ¶
func SetExecutorFactory(f ExecutorFactory)
SetExecutorFactory sets the executor factory (for testing or REPL).
Types ¶
type DirectExecutorFactory ¶
type DirectExecutorFactory struct {
// contains filtered or unexported fields
}
DirectExecutorFactory creates direct executors for REPL use. It calls the daemon handler directly without IPC.
func NewDirectExecutorFactory ¶
func NewDirectExecutorFactory(handler ipc.Handler) *DirectExecutorFactory
NewDirectExecutorFactory creates a factory that uses direct execution.
func (*DirectExecutorFactory) IsDaemonRunning ¶
func (f *DirectExecutorFactory) IsDaemonRunning() bool
func (*DirectExecutorFactory) NewExecutor ¶
func (f *DirectExecutorFactory) NewExecutor() (executor.Executor, error)