Files
iris-context/commands/ops/amplify.go
T
VERSE 2ef3c90819 feat(commands): more commands (#30)
- I wrote a scripts to copy and generate all commands missing in iris
from fig repo: https://github.com/withfig/autocomplete
- Add a new script to generate commands docs about which commands
currently are inside commands folder
377d4aac663590e504fe39a92eb4dac4cbd333b2
- Add more icons e64d4e70a1db61e62053460a882e093bd6373ab1
2026-07-04 22:08:36 +07:00

43 lines
2.3 KiB
Go

package ops
import (
"github.com/versenilvis/iris/commands/core"
)
func init() {
core.Register(&core.Spec{
Name: "amplify",
Description: "Environment",
Subcommands: []core.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: []core.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"},
},
})
}