- 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
28 lines
1.0 KiB
Go
28 lines
1.0 KiB
Go
package sys
|
|
|
|
import (
|
|
"github.com/versenilvis/iris/spec"
|
|
)
|
|
|
|
func init() {
|
|
spec.Register(&spec.Spec{
|
|
Name: "nhost",
|
|
Description: "Nhost",
|
|
Subcommands: []spec.Subcommand{
|
|
{Name: "deploy", Description: "Deploy local migrations and metadata changes to Nhost production"},
|
|
{Name: "dev", Description: "Start Nhost project for local development"},
|
|
{Name: "down", Description: "Stop and remove local Nhost backend started by `nhost dev`"},
|
|
{Name: "env", Description: "List environment variables"},
|
|
{Name: "env:pull", Description: "Sync remote environment variables to your local environment"},
|
|
{Name: "help", Description: "Display help for nhost"},
|
|
{Name: "init", Description: "Initialize current working directory as a Nhost project"},
|
|
{Name: "link", Description: "Link Nhost Project"},
|
|
{Name: "login", Description: "Login to your Nhost account"},
|
|
{Name: "logout", Description: "Logout from your Nhost account"},
|
|
},
|
|
Options: []spec.Option{
|
|
{Name: "--email", Description: "Email address"},
|
|
},
|
|
})
|
|
}
|