- 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
20 lines
500 B
Go
20 lines
500 B
Go
package js
|
|
|
|
import (
|
|
"github.com/versenilvis/iris/spec"
|
|
)
|
|
|
|
func init() {
|
|
spec.Register(&spec.Spec{
|
|
Name: "create-completion-spec",
|
|
Description: "Setup fig folder and create spec with the given name",
|
|
Subcommands: []spec.Subcommand{
|
|
{Name: "help", Description: "Display help for command"},
|
|
},
|
|
Options: []spec.Option{
|
|
{Name: "--here", Description: "Set if the spec should be created in the current folder"},
|
|
{Name: "-h", Description: "Display help for command"},
|
|
},
|
|
})
|
|
}
|