Skip to content

Commit

Permalink
rename get-token and try-login commands to test-login and test-token
Browse files Browse the repository at this point in the history
  • Loading branch information
morganelle committed Feb 19, 2021
1 parent bc838d7 commit 37119f8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions internal/cli/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@ func Execute() {
rootCmd.AddCommand(quickstartCmd(cli))
rootCmd.AddCommand(clientsCmd(cli))
rootCmd.AddCommand(apisCmd(cli))
rootCmd.AddCommand(tryLoginCmd(cli))
rootCmd.AddCommand(testLoginCmd(cli))
rootCmd.AddCommand(logsCmd(cli))
rootCmd.AddCommand(actionsCmd(cli))
rootCmd.AddCommand(getTokenCmd(cli))
rootCmd.AddCommand(testTokenCmd(cli))

// keep completion at the bottom:
rootCmd.AddCommand(completionCmd(cli))
Expand Down
6 changes: 3 additions & 3 deletions internal/cli/try_login.go → internal/cli/test_login.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ import (
"github.com/spf13/cobra"
)

func tryLoginCmd(cli *cli) *cobra.Command {
func testLoginCmd(cli *cli) *cobra.Command {
var clientID string
var connectionName string

cmd := &cobra.Command{
Use: "try-login",
Use: "test login",
Short: "Try out your universal login box",
Long: `auth0 try-login
Long: `auth0 test login
Launch a browser to try out your universal login box for the given client.
`,
RunE: func(cmd *cobra.Command, args []string) error {
Expand Down
6 changes: 3 additions & 3 deletions internal/cli/get_token.go → internal/cli/test_token.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ import (
"github.com/spf13/cobra"
)

func getTokenCmd(cli *cli) *cobra.Command {
func testTokenCmd(cli *cli) *cobra.Command {
var clientID string
var audience string
var scopes []string

cmd := &cobra.Command{
Use: "get-token",
Use: "test token",
Short: "Fetch a token for the given client and API",
Long: `auth0 get-token
Long: `auth0 test token
Fetch an access token for the given client and API.
`,
RunE: func(cmd *cobra.Command, args []string) error {
Expand Down

0 comments on commit 37119f8

Please sign in to comment.