Files
iris-context/commands/ops/amplify.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

43 lines
2.3 KiB
Go

package ops
import (
"github.com/versenilvis/iris/spec"
)
func init() {
spec.Register(&spec.Spec{
Name: "amplify",
Description: "Environment",
Subcommands: []spec.Subcommand{
{Name: "push", Description: "Provisions cloud resources with the latest local developments"},
{Name: "delete", Description: "Deletes all of the resources tied to the project from the cloud"},
{Name: "add", Description: "Adds a resource for an Amplify category in your local backend"},
{Name: "update", Description: "Update resource for an Amplify category in your local backend"},
{Name: "remove", Description: "Removes a resource for an Amplify category in your local backend"},
{Name: "upgrade", Description: "Download and install the latest version of the Amplify CLI"},
{Name: "migrate", Description: "Migrates GraphQL schemas to the latest GraphQL transformer version"},
{Name: "override", Description: "Generates overrides file to apply custom modifications to CloudFormation"},
{Name: "mock", Description: "Run mock server for testing categories locally"},
{Name: "console", Description: "Opens the web console for the selected cloud resource"},
{Name: "logout", Description: "If using temporary cloud provider credentials, this logs out of the account"},
{Name: "env", Description: "Display all commands available for new Amplify project"},
{Name: "pull", Description: "Pulls the current env from the cloud"},
{Name: "checkout", Description: "Switches to selected environment"},
{Name: "env-name", Description: "Env name"},
{Name: "list", Description: "Displays a list of all the environments"},
{Name: "get", Description: "Displays the environment details"},
{Name: "import", Description: "Imports an environment"},
},
Options: []spec.Option{
{Name: "-y", Description: "Answer all question as 'Yes'"},
{Name: "-v", Description: "Deletes all of the resources tied to the project from the cloud"},
{Name: "--restore", Description: "Overwrite your local changes"},
{Name: "--details", Description: "See more details"},
{Name: "--json", Description: "Format the output"},
{Name: "--name", Description: "Mandatory flag"},
{Name: "--config", Description: "Specify provider configs"},
{Name: "--awsInfo", Description: "Specify AWS configs"},
},
})
}