command

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 22, 2026 License: Apache-2.0 Imports: 46 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
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")
)
View Source
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

func Run(ctx context.Context, args []string, input io.Reader, stdout, stderr io.Writer) error

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 is active. Other commands retain normal process-cancellation semantics for interrupts.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL