Files
iris-context/commands/js/ng.go
VERSE ebde9ba68f refactor(commands): separate commands and its core into two folders (#32)
- 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
2026-07-05 11:27:30 +07:00

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"},
},
})
}