- I think it would be better if one for commands only, one for the spec handling core logic so people won't be confused by the core logic inside the commands folder (cleaner I guess) - Regen docs
25 lines
738 B
Go
25 lines
738 B
Go
package sys
|
|
|
|
import (
|
|
"github.com/versenilvis/iris/spec"
|
|
)
|
|
|
|
func init() {
|
|
spec.Register(&spec.Spec{
|
|
Name: "fisher",
|
|
Description: "[Prompt] - 🌊 The ultimate Fish prompt",
|
|
Subcommands: []spec.Subcommand{
|
|
{Name: "install", Description: "Install plugin"},
|
|
{Name: "remove", Description: "Remove plugins"},
|
|
{Name: "installed plugins", Description: "The plugin you want to remove"},
|
|
{Name: "update", Description: "Update plugins"},
|
|
{Name: "list", Description: "List plugins"},
|
|
{Name: "RegEx", Description: "Search in list with regular expression"},
|
|
},
|
|
Options: []spec.Option{
|
|
{Name: "--help", Description: "Show help for fisher"},
|
|
{Name: "--version", Description: "Show fisher version"},
|
|
},
|
|
})
|
|
}
|