refactor: wording & short options

This commit is contained in:
2021-12-27 16:12:29 +01:00
parent a06043375d
commit b1d9d9d858
11 changed files with 13 additions and 15 deletions

View File

@ -7,7 +7,7 @@ import (
// AppCommand defines the `abra app` command and ets subcommands
var AppCommand = &cli.Command{
Name: "app",
Usage: "Manage deployed apps",
Usage: "Manage apps",
Aliases: []string{"a"},
ArgsUsage: "<app>",
Description: `

View File

@ -17,7 +17,7 @@ import (
var appRestartCommand = &cli.Command{
Name: "restart",
Usage: "Restart an app",
Aliases: []string{"R"},
Aliases: []string{"re"},
ArgsUsage: "<service>",
Description: `This command restarts a service within a deployed app.`,
Action: func(c *cli.Context) error {

View File

@ -27,7 +27,7 @@ var restoreAllServicesFlag = &cli.BoolFlag{
var appRestoreCommand = &cli.Command{
Name: "restore",
Usage: "Restore an app from a backup",
Aliases: []string{"r"},
Aliases: []string{"rs"},
Flags: []cli.Flag{restoreAllServicesFlag},
ArgsUsage: "<service> [<backup file>]",
Action: func(c *cli.Context) error {

View File

@ -21,7 +21,7 @@ import (
var appRollbackCommand = &cli.Command{
Name: "rollback",
Usage: "Roll an app back to a previous version",
Aliases: []string{"r", "downgrade"},
Aliases: []string{"rl"},
ArgsUsage: "<app>",
Flags: []cli.Flag{
internal.ForceFlag,

View File

@ -11,7 +11,7 @@ import (
var appUndeployCommand = &cli.Command{
Name: "undeploy",
Aliases: []string{"u"},
Aliases: []string{"un"},
Usage: "Undeploy an app",
Description: `
This does not destroy any of the application data. However, you should remain

View File

@ -19,7 +19,7 @@ import (
var appUpgradeCommand = &cli.Command{
Name: "upgrade",
Aliases: []string{"u"},
Aliases: []string{"up"},
Usage: "Upgrade an app",
ArgsUsage: "<app>",
Flags: []cli.Flag{