- 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
32 lines
1.2 KiB
Go
32 lines
1.2 KiB
Go
package js
|
|
|
|
import (
|
|
"github.com/versenilvis/iris/spec"
|
|
)
|
|
|
|
func init() {
|
|
spec.Register(&spec.Spec{
|
|
Name: "ng",
|
|
Description: "Project name",
|
|
Subcommands: []spec.Subcommand{
|
|
{Name: "new", Description: "Create a new Angular app"},
|
|
{Name: "generate", Description: "Generate new files"},
|
|
{Name: "application", Description: "Generates a new application"},
|
|
{Name: "name", Description: "Name of the new app"},
|
|
{Name: "component", Description: "Generate a new component"},
|
|
{Name: "library", Description: "Generates a new library"},
|
|
{Name: "class", Description: "Generates a class"},
|
|
{Name: "version", Description: "View your Angular CLI version (update for Angular 14+)"},
|
|
},
|
|
Options: []spec.Option{
|
|
{Name: "--project", Description: "Project name"},
|
|
{Name: "--create-application", Description: "Create a default application?"},
|
|
{Name: "--style", Description: "Generate a new component"},
|
|
{Name: "--change-detection", Description: "The change detection strategy to use"},
|
|
{Name: "--display-block", Description: "Add :host block to styles"},
|
|
{Name: "--flat", Description: "Create at the top level"},
|
|
{Name: "--version", Description: "View your Angular CLI version"},
|
|
},
|
|
})
|
|
}
|