Documentation
¶
Overview ¶
Package cli implements the command-line interface for godoctor using Cobra.
Index ¶
- Constants
- func ExecuteInstall(ctx context.Context, opts InstallOptions, stdout, stderr io.Writer) error
- func ExecuteUninstall(ctx context.Context, opts UninstallOptions, stdout, stderr io.Writer) error
- func NewRootCmd(version string, stdin io.Reader, stdout, stderr io.Writer) *cobra.Command
- func Run(ctx context.Context, version string, args []string, stdin io.Reader, ...) error
- type GlobalOptions
- type InstallOptions
- type ToolDef
- type UninstallOptions
Constants ¶
View Source
const ( ToolNameEdit = "edit" ToolNameBuild = "build" ToolNameTest = "test" ToolNameDocs = "docs" ToolNameSelene = "selene" ToolNameTestQuery = "testquery" ToolNameTQ = "tq" AppName = "godoctor" CommandMCP = "mcp" CommandInit = "init" CommandCheck = "check" CommandList = "list" )
CLI tool name and command constants
View Source
const DefaultConfigFileTemplate = `` /* 5805-byte string literal not displayed */
DefaultConfigFileTemplate is the master .godoctor.yaml configuration template matching RFC-0001 (Section 3.1).
View Source
const MinimalConfigFileTemplate = `` /* 403-byte string literal not displayed */
MinimalConfigFileTemplate is a concise configuration template for minimal setups.
Variables ¶
This section is empty.
Functions ¶
func ExecuteInstall ¶
ExecuteInstall performs the installation according to the given options.
func ExecuteUninstall ¶
ExecuteUninstall performs the uninstallation according to the given options.
func NewRootCmd ¶ added in v0.34.0
NewRootCmd constructs the main Cobra command tree.
Types ¶
type GlobalOptions ¶ added in v0.34.0
GlobalOptions holds global CLI flags.
type InstallOptions ¶
type InstallOptions struct {
InstallAll bool
InstallMCP bool
InstallSkills bool
Workspace bool
Global bool
Force bool
Quiet bool
ConfigPath string
SkillsDir string
}
InstallOptions holds parsed options for the install command.
Click to show internal directories.
Click to hide internal directories.