Documentation
¶
Index ¶
- Variables
- func Execute()
- func ImageProviderFlagCompletion(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
- func MCPFlagCompletion(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
- func MCPServerArgCompletion(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
- func ProviderFlagCompletion(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
- func ToolsFlagCompletion(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
- type ModelLister
- type ToolDefinition
Constants ¶
This section is empty.
Variables ¶
var Commit = "unknown"
var Date = "unknown"
var Version = "dev"
These will be set by the linker during build
Functions ¶
func ImageProviderFlagCompletion ¶ added in v0.0.6
func ImageProviderFlagCompletion(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
ImageProviderFlagCompletion handles --provider flag completion for image commands
func MCPFlagCompletion ¶ added in v0.0.15
func MCPFlagCompletion(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
MCPFlagCompletion provides completions for --mcp flag with comma-separated support. When typing "playwright,file<TAB>", completes to "playwright,filesystem".
func MCPServerArgCompletion ¶ added in v0.0.23
func MCPServerArgCompletion(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
MCPServerArgCompletion provides completions for MCP server names as positional arguments. Used by commands like "mcp test <server>" and "mcp remove <server>".
func ProviderFlagCompletion ¶ added in v0.0.6
func ProviderFlagCompletion(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
ProviderFlagCompletion handles --provider flag completion for LLM commands
func ToolsFlagCompletion ¶ added in v0.0.25
func ToolsFlagCompletion(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
ToolsFlagCompletion provides completions for --tools flag with comma-separated support. When typing "read,wr<TAB>", completes to "read,write".
Types ¶
type ModelLister ¶ added in v0.0.8
ModelLister is an interface for providers that can list available models
type ToolDefinition ¶ added in v0.0.25
type ToolDefinition struct {
Name string `json:"name"`
Description string `json:"description"`
Schema json.RawMessage `json:"schema"`
}
ToolDefinition represents a tool definition passed to the MCP server