Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // ErrAttachSessionIDRequired is returned when attach receives no Session ID. ErrAttachSessionIDRequired = errors.New("session ID is required") // ErrAttachedSessionNotFound is returned when the MCP host does not manage // the requested Session. ErrAttachedSessionNotFound = errors.New("attached session not found") )
var ( // ErrFileSessionRequired is returned when no open shared Session can be // selected for a file transfer. ErrFileSessionRequired = errors.New("an open shared Session is required") // ErrFileSessionAmbiguous is returned when an omitted --session could select // more than one open shared Session. ErrFileSessionAmbiguous = errors.New("multiple open shared Sessions are available") )
Functions ¶
func Run ¶
Run routes one CLI invocation using caller-owned process I/O.
ctx carries process cancellation from the Composition Root. stdin, stdout, and stderr remain adapter concerns; Core packages never receive them.
func RunWithInterrupts ¶
func RunWithInterrupts(ctx context.Context, args []string, input io.Reader, stdout, stderr io.Writer, interrupts <-chan os.Signal) error
RunWithInterrupts routes one CLI invocation while treating process-level Console interruptions as local interactive input when attach or ssh is active. Other commands retain normal process-cancellation semantics for interrupts.
Types ¶
This section is empty.