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.
Source Files
¶
- ansi_output_other.go
- attach.go
- attach_debug_report.go
- attach_file_presentation.go
- attach_file_shortcut.go
- attach_input_dispatcher.go
- command.go
- diagnostics.go
- events.go
- file.go
- gdb_list.go
- highlight_output.go
- install.go
- list.go
- presentation_line_state.go
- presentation_text.go
- prompt_timestamp.go
- rsp_client.go
- ssh.go
- ssh_auth.go
- ssh_file_progress.go
- ssh_files.go
- ssh_input.go