cli

package
v0.33.0 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2026 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Overview

Package cli implements the command-line interface for godoctor.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecuteInstall

func ExecuteInstall(opts InstallOptions, stdout, stderr io.Writer) error

ExecuteInstall performs the installation according to the given options.

func ExecuteUninstall

func ExecuteUninstall(opts UninstallOptions, stdout, stderr io.Writer) error

ExecuteUninstall performs the uninstallation according to the given options.

func PrintHelp

func PrintHelp(w io.Writer, version string)

PrintHelp writes the main help text to w.

func Run

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

Run executes the CLI with the given arguments.

Types

type InstallOptions

type InstallOptions struct {
	InstallMCP    bool
	InstallSkills bool
	Workspace     bool
	Global        bool
	Force         bool
	Quiet         bool
	ConfigPath    string
	SkillsDir     string
}

InstallOptions holds parsed options for the install command.

type ToolDef

type ToolDef struct {
	Name        string
	Aliases     []string
	Description string
	Usage       string
	Invoke      func(ctx context.Context, rawArgs []string, stdin io.Reader) (*mcp.CallToolResult, error)
}

ToolDef represents metadata and invoker for a tool.

func FindTool

func FindTool(name string) *ToolDef

FindTool looks up a tool by name or alias.

func GetTools

func GetTools() []ToolDef

GetTools returns the list of all registered tools.

type UninstallOptions

type UninstallOptions struct {
	UninstallMCP    bool
	UninstallSkills bool
	Workspace       bool
	Global          bool
	Quiet           bool
	ConfigPath      string
	SkillsDir       string
}

UninstallOptions holds parsed options for the uninstall command.

Jump to

Keyboard shortcuts

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