Files
iris-context/commands/js/nuxi.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

34 lines
1.7 KiB
Go

package js
import (
"github.com/versenilvis/iris/spec"
)
func init() {
spec.Register(&spec.Spec{
Name: "nuxi",
Description: "The directory of the target application",
Options: []spec.Option{
{Name: "--help", Description: "Show help"},
{Name: "--verbose", Description: "Log information about the installation process"},
{Name: "--template", Description: "Specify a Git repository to use as a template"},
{Name: "--force", Description: "Force clone to any existing directory"},
{Name: "--prefer-offline", Description: "Try local cache first to download templates"},
{Name: "--shell", Description: "Open shell in cloned directory (experimental)"},
{Name: "--cwd", Description: "The current working directory of the target application"},
{Name: "--dotenv", Description: "Point to another .env file to load, relative to the root directory"},
{Name: "--prerender", Description: "Point to another .env file to load, relative to the root directory"},
{Name: "--clipboard", Description: "Copy URL to clipboard"},
{Name: "--open", Description: "Open URL in browser"},
{Name: "--no-clear", Description: "Does not clear the console after startup"},
{Name: "--port", Description: "Port to listen"},
{Name: "--host", Description: "Hostname of the server"},
{Name: "--https", Description: "Listen with https protocol with a self-signed certificate by default"},
{Name: "--ssl-cert", Description: "Specify a certificate for https"},
{Name: "--ssl-key", Description: "Specify the key for the https certificate"},
{Name: "--dev", Description: "Run tests in development mode"},
{Name: "--watch", Description: "Actively watch for changes and rerun tests"},
},
})
}