refactor: wording & short options
continuous-integration/drone/push Build is passing Details

This commit is contained in:
decentral1se 2021-12-27 16:12:29 +01:00
parent a06043375d
commit b1d9d9d858
Signed by: decentral1se
GPG Key ID: 03789458B3D0C410
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 // AppCommand defines the `abra app` command and ets subcommands
var AppCommand = &cli.Command{ var AppCommand = &cli.Command{
Name: "app", Name: "app",
Usage: "Manage deployed apps", Usage: "Manage apps",
Aliases: []string{"a"}, Aliases: []string{"a"},
ArgsUsage: "<app>", ArgsUsage: "<app>",
Description: ` Description: `

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -16,7 +16,7 @@ import (
// AutoCompleteCommand helps people set up auto-complete in their shells // AutoCompleteCommand helps people set up auto-complete in their shells
var AutoCompleteCommand = &cli.Command{ var AutoCompleteCommand = &cli.Command{
Name: "autocomplete", Name: "autocomplete",
Usage: "Help set up shell autocompletion", Usage: "Configure shell autocompletion (recommended)",
Aliases: []string{"ac"}, Aliases: []string{"ac"},
Description: ` Description: `
This command helps set up autocompletion in your shell by downloading the This command helps set up autocompletion in your shell by downloading the

View File

@ -28,10 +28,7 @@ func newAbraApp(version, commit string) *cli.App {
| |__| (_) |_____| (_) | |_) | | |___| | (_) | |_| | (_| | | |__| (_) |_____| (_) | |_) | | |___| | (_) | |_| | (_| |
\____\___/ \___/| .__/ \____|_|\___/ \__,_|\__,_| \____\___/ \___/| .__/ \____|_|\___/ \__,_|\__,_|
|_| |_|
`,
If you haven't already done so, consider setting up autocompletion for a more
convenient command-line experience. See "abra autocomplete -h" for more.
`,
Version: fmt.Sprintf("%s-%s", version, commit[:7]), Version: fmt.Sprintf("%s-%s", version, commit[:7]),
Commands: []*cli.Command{ Commands: []*cli.Command{
app.AppCommand, app.AppCommand,

View File

@ -7,7 +7,7 @@ import (
// RecordCommand supports managing DNS entries. // RecordCommand supports managing DNS entries.
var RecordCommand = &cli.Command{ var RecordCommand = &cli.Command{
Name: "record", Name: "record",
Usage: "Manage domain name records via 3rd party providers", Usage: "Manage domain name records",
Aliases: []string{"rc"}, Aliases: []string{"rc"},
ArgsUsage: "<record>", ArgsUsage: "<record>",
Description: ` Description: `

View File

@ -8,7 +8,7 @@ import (
var ServerCommand = &cli.Command{ var ServerCommand = &cli.Command{
Name: "server", Name: "server",
Aliases: []string{"s"}, Aliases: []string{"s"},
Usage: "Manage servers via 3rd party providers", Usage: "Manage servers",
Description: ` Description: `
These commands support creating, managing and removing servers using 3rd party These commands support creating, managing and removing servers using 3rd party
integrations. integrations.

View File

@ -15,8 +15,9 @@ var releaseCandidateURL = "https://git.coopcloud.tech/coop-cloud/abra/raw/branch
// UpgradeCommand upgrades abra in-place. // UpgradeCommand upgrades abra in-place.
var UpgradeCommand = &cli.Command{ var UpgradeCommand = &cli.Command{
Name: "upgrade", Name: "upgrade",
Usage: "Upgrade Abra", Usage: "Upgrade Abra itself",
Aliases: []string{"u"},
Description: ` Description: `
This command allows you to upgrade Abra in-place with the latest stable or This command allows you to upgrade Abra in-place with the latest stable or
release candidate. release candidate.