Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Tool ¶
type Tool struct {
Name string `json:"name"`
Description string `json:"description"`
Binary string `json:"binary"`
BinaryAliases []string `json:"binaryAliases,omitempty"`
Brew string `json:"brew"`
Apt string `json:"apt"`
Fallback string `json:"fallback"`
Requires []string `json:"requires,omitempty"`
}
Tool describes a single installable tool from the registry.
func (Tool) BinaryName ¶
BinaryName returns the primary executable name for the tool. Falls back to Name when the Binary field is empty.
func (Tool) BinaryNames ¶
BinaryNames returns all candidate executable names for the tool. When BinaryAliases is non-empty it is returned as-is; otherwise a single-element slice containing BinaryName() is returned. Callers that need to detect whether a tool is installed should try each name in order and stop at the first match.
Click to show internal directories.
Click to hide internal directories.