Documentation ¶
Index ¶
- Variables
- func ConfigTool(name string, tool *Tool, immediatelyConfigToolDir bool)
- func ConfigToolDir(tooldir *ToolDir)
- func ConfigToolDirs(tooldirs map[string]*ToolDir)
- func ConfigTools(tools Tools)
- func GetToolPath(customPath string) string
- func LoadTools(toolPath string, quiet bool) error
- func NewTool(toolPath, descriptions string, ArgsExpression string, builtinFunc BuiltinFunc, ...)
- type Arg
- type ArgumentsFunc
- type BuiltinFunc
- type Conf
- type Tool
- type ToolBuilder
- type ToolDir
- type Tools
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func ConfigTool ¶
func ConfigToolDir ¶
func ConfigToolDir(tooldir *ToolDir)
func ConfigToolDirs ¶
func ConfigTools ¶
func ConfigTools(tools Tools)
func GetToolPath ¶
Types ¶
type Arg ¶
type Arg struct { Name string `yaml:"name"` Type string `yaml:"type"` Descriptions string `yaml:"descriptions"` CommandArgs string `yaml:"cmd_arg"` Value string }
func NewArguments ¶
type ArgumentsFunc ¶
type ArgumentsFunc func(*Tool)
type BuiltinFunc ¶
type Tool ¶
type Tool struct { Descriptions string `yaml:"descriptions"` DownloadURL string `yaml:"download_url"` Args []Arg `yaml:"args"` Command string `yaml:"command"` ResultFilterFunction string `yaml:"result_filter_function"` ArgsExpression string `yaml:"args_expression"` BuiltinFunc BuiltinFunc ArgSuggests []prompt.Suggest }
type ToolBuilder ¶
type ToolBuilder struct{}
Click to show internal directories.
Click to hide internal directories.