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
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{

View File

@ -16,7 +16,7 @@ import (
// AutoCompleteCommand helps people set up auto-complete in their shells
var AutoCompleteCommand = &cli.Command{
Name: "autocomplete",
Usage: "Help set up shell autocompletion",
Usage: "Configure shell autocompletion (recommended)",
Aliases: []string{"ac"},
Description: `
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]),
Commands: []*cli.Command{
app.AppCommand,

View File

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

View File

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

View File

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