Documentation ¶
Overview ¶
Package fish provides methods for generating fish completion
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Generate ¶
Generate generates fish completion code
Example ¶
info := usage.NewInfo() info.AddCommand("test", "Test data") info.AddCommand("clean", "Clean data") info.AddOption("d:dir", "Path to working directory", "dir") info.BoundOptions("test", "d:dir") info.BoundOptions("clean", "d:dir") info.AddOption("nc:no-color", "Disable colors in output") info.AddOption("h:help", "Show this help message") info.AddOption("v:version", "Show version") fmt.Println(Generate(info, "app"))
Output:
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.