cli

package
v1.7.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2026 License: MIT Imports: 59 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Channel = "go"
View Source
var Commit = "unknown"
View Source
var Target = runtime.GOOS + "/" + runtime.GOARCH
View Source
var Version = versioninfo.Current()

Functions

This section is empty.

Types

type App

type App struct {
	In         io.Reader
	Out, Err   io.Writer
	Root       string
	Home       string
	Timeout    time.Duration
	Runner     gitx.Runner
	HTTPClient *http.Client

	// Interactive overrides terminal detection in tests. Nil uses stdin's device mode.
	Interactive *bool
	// contains filtered or unexported fields
}

func New

func New(out, errOut io.Writer) *App

func (*App) Run

func (a *App) Run(args []string) int

type MCPToolFact added in v1.6.0

type MCPToolFact struct {
	Name        string
	Access      string
	Description string
	ReadOnly    bool
	Destructive bool
	Idempotent  bool
	OpenWorld   bool
}

MCPToolFact is the enumerable user-facing contract shared by MCP registration and generated documentation. Handler behavior stays next to registration; names, descriptions, access, and annotations stay here so prose cannot silently drift from tools/list.

func MCPToolFacts added in v1.6.0

func MCPToolFacts() []MCPToolFact

MCPToolFacts returns a copy for deterministic documentation and audits.

Jump to

Keyboard shortcuts

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