- 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
595 B
Go
20 lines
595 B
Go
package js
|
|
|
|
import (
|
|
"github.com/versenilvis/iris/spec"
|
|
)
|
|
|
|
func init() {
|
|
spec.Register(&spec.Spec{
|
|
Name: "create-next-app",
|
|
Description: "Output the version number",
|
|
Options: []spec.Option{
|
|
{Name: "-V", Description: "Output the version number"},
|
|
{Name: "--ts", Description: "Initialize as a TypeScript project"},
|
|
{Name: "--use-npm", Description: "Explicitly tell the CLI to bootstrap the app using npm"},
|
|
{Name: "--use-pnpm", Description: "Explicitly tell the CLI to bootstrap the app using pnpm"},
|
|
{Name: "-e", Description: "Display help for command"},
|
|
},
|
|
})
|
|
}
|