- 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
34 lines
1.5 KiB
Go
34 lines
1.5 KiB
Go
package runner
|
|
|
|
import (
|
|
"github.com/versenilvis/iris/spec"
|
|
)
|
|
|
|
func init() {
|
|
spec.Register(&spec.Spec{
|
|
Name: "laravel",
|
|
Description: "The output format (txt, xml, json, or md)",
|
|
Subcommands: []spec.Subcommand{
|
|
{Name: "new", Description: "Create a new Laravel application"},
|
|
},
|
|
Options: []spec.Option{
|
|
{Name: "--format", Description: "The output format (txt, xml, json, or md)"},
|
|
{Name: "--raw", Description: "To output raw command list"},
|
|
{Name: "--dev", Description: "Initialize a Git repository"},
|
|
{Name: "--branch", Description: "The branch that should be created for a new repository"},
|
|
{Name: "--github", Description: "Create a new repository on GitHub"},
|
|
{Name: "--jet", Description: "Installs the Laravel Jetstream scaffolding"},
|
|
{Name: "--stack", Description: "The Jetstream stack that should be installed"},
|
|
{Name: "--teams", Description: "Indicates whether Jetstream should be scaffolded with team support"},
|
|
{Name: "--prompt-jetstream", Description: "Issues a prompt to determine if Jetstream should be installed"},
|
|
{Name: "-f", Description: "Forces install even if the directory already exists"},
|
|
{Name: "-h", Description: "Display the help message"},
|
|
{Name: "-q", Description: "Do not output any message"},
|
|
{Name: "-V", Description: "Display this application version"},
|
|
{Name: "--ansi", Description: "Force ANSI output"},
|
|
{Name: "--no-ansi", Description: "Disable ANSI output"},
|
|
{Name: "-n", Description: "Do not ask any interactive question"},
|
|
},
|
|
})
|
|
}
|