Documentation
¶
Overview ¶
Package agentdriver resolves the host process argv used to re-exec into agent-run CLI (ForceNew follow-up and TTY __serve_* children).
Callers pass an optional Driver; empty Binary applies DefaultSelf once. Embedding hosts (e.g. spl) set Binary + Args explicitly:
Driver{Binary: abs(spl), Args: []string{"agent-run"}}
Runtime argv is always:
[abs(Binary), Args..., remainder...]
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CommandContext ¶
CommandContext is like Command with a context.
Types ¶
type Driver ¶
type Driver struct {
// Binary is the executable path or bare name. Empty → DefaultSelf at Resolve.
Binary string
// Args are tokens after Binary and before remainder (e.g. "agent-run" for spl).
Args []string
}
Driver is the host re-exec configuration for agent-run embedding.
func DefaultSelf ¶
DefaultSelf returns Driver{Binary: abs path of this process, Args: nil}.
Click to show internal directories.
Click to hide internal directories.