Skip to content

Commit

Permalink
Merge pull request #266 from planetscale/jg_help
Browse files Browse the repository at this point in the history
Rework some of the short help messages
  • Loading branch information
aquarapid committed May 21, 2021
2 parents 1bd7252 + 70023eb commit 7e38647
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion internal/cmd/auth/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
func AuthCmd(ch *cmdutil.Helper) *cobra.Command {
cmd := &cobra.Command{
Use: "auth <command>",
Short: "Login, logout, and refresh your authentication",
Short: "Login and logout via the PlanetScale API",
Long: "Manage authentication",
}

Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/auth/login.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func LoginCmd(ch *cmdutil.Helper) *cobra.Command {
cmd := &cobra.Command{
Use: "login",
Args: cobra.ExactArgs(0),
Short: "Authenticate with PlanetScale",
Short: "Authenticate with the PlanetScale API",
RunE: func(cmd *cobra.Command, args []string) error {
if !printer.IsTTY {
return errors.New("The 'login' command requires an interactive shell")
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/backup/backup.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
func BackupCmd(ch *cmdutil.Helper) *cobra.Command {
cmd := &cobra.Command{
Use: "backup <command>",
Short: "Create, read, destroy, and update branch backups",
Short: "Create, list, show, and delete branch backups",
PersistentPreRunE: cmdutil.CheckAuthentication(ch.Config),
}

Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/branch/branch.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
func BranchCmd(ch *cmdutil.Helper) *cobra.Command {
cmd := &cobra.Command{
Use: "branch <command>",
Short: "Create, delete, and manage branches",
Short: "Create, delete, diff, and manage branches",
PersistentPreRunE: cmdutil.CheckAuthentication(ch.Config),
}

Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/connect/connect.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func ConnectCmd(ch *cmdutil.Helper) *cobra.Command {
Use: "connect [database] [branch]",
// we only require database, because we deduct branch automatically
Args: cmdutil.RequiredArgs("database"),
Short: "Create a secure connection to the given database and branch",
Short: "Create a secure connection to a database and branch for a local client",
Example: `The connect subcommand establishes a secure connection between your host and PlanetScale.
By default, if no branch names are given and there is only one branch, it
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/database/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
func DatabaseCmd(ch *cmdutil.Helper) *cobra.Command {
cmd := &cobra.Command{
Use: "database <command>",
Short: "Create, read, destroy, and update databases",
Short: "Create, read, delete, and dump/restore databases",
Aliases: []string{"db"},
PersistentPreRunE: cmdutil.CheckAuthentication(ch.Config),
}
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/deployrequest/close.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
func CloseCmd(ch *cmdutil.Helper) *cobra.Command {
cmd := &cobra.Command{
Use: "close <database> <number>",
Short: "Close deploy requests",
Short: "Close a deploy request",
Args: cmdutil.RequiredArgs("database", "number"),
RunE: func(cmd *cobra.Command, args []string) error {
ctx := context.Background()
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/deployrequest/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
func DeployCmd(ch *cmdutil.Helper) *cobra.Command {
cmd := &cobra.Command{
Use: "deploy <database> <number>",
Short: "Deploy a specific deploy request by its number",
Short: "Deploy a specific deploy request",
Args: cmdutil.RequiredArgs("database", "number"),
RunE: func(cmd *cobra.Command, args []string) error {
ctx := context.Background()
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/deployrequest/dr.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
func DeployRequestCmd(ch *cmdutil.Helper) *cobra.Command {
cmd := &cobra.Command{
Use: "deploy-request <command>",
Short: "Create, approve, diff, and manage deploy requests",
Short: "Create, review, diff, and manage deploy requests",
Aliases: []string{"dr"},
PersistentPreRunE: cmdutil.CheckAuthentication(ch.Config),
}
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/org/org.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
func OrgCmd(ch *cmdutil.Helper) *cobra.Command {
cmd := &cobra.Command{
Use: "org <command>",
Short: "Modify and manage organization options",
Short: "List, show, and switch organizations",
PersistentPreRunE: cmdutil.CheckAuthentication(ch.Config),
}

Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/shell/shell.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func ShellCmd(ch *cmdutil.Helper) *cobra.Command {
Use: "shell [database] [branch]",
// we only require database, because we deduct branch automatically
Args: cmdutil.RequiredArgs("database"),
Short: "Open a MySQL shell instance to the given database and branch",
Short: "Open a MySQL shell instance to a database and branch",
Example: `The shell subcommand opens a secure MySQL shell instance to your database.
It uses the MySQL command-line client ("mysql"), which needs to be installed.
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/token/token.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
func TokenCmd(ch *cmdutil.Helper) *cobra.Command {
cmd := &cobra.Command{
Use: "service-token <action>",
Short: "Create, get, and list service tokens",
Short: "Create, list, and manage access for service tokens",
PersistentPreRunE: cmdutil.CheckAuthentication(ch.Config),
}

Expand Down

0 comments on commit 7e38647

Please sign in to comment.