Skip to content

Commit 2116c28

Browse files
authored
Change the CLI name to match the project name (#88)
1 parent 69b50d2 commit 2116c28

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

cmd/oauth2.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ import (
1212
"strings"
1313
"time"
1414

15+
"github.com/cli/browser"
1516
"github.com/cloudentity/oauth2c/internal/oauth2"
1617
"github.com/imdario/mergo"
17-
"github.com/cli/browser"
1818
"github.com/spf13/cobra"
1919
)
2020

@@ -32,7 +32,7 @@ func NewOAuth2Cmd() (cmd *OAuth2Cmd) {
3232

3333
cmd = &OAuth2Cmd{
3434
Command: &cobra.Command{
35-
Use: "oauthc [issuer url]",
35+
Use: "oauth2c [issuer url]",
3636
Short: "User-friendly command-line for OAuth2",
3737
Args: cobra.ExactArgs(1),
3838
},
@@ -203,7 +203,6 @@ func (c *OAuth2Cmd) Authorize(clientConfig oauth2.ClientConfig, hc *http.Client)
203203

204204
func (c *OAuth2Cmd) PrintResult(result interface{}) {
205205
output, err := json.Marshal(result)
206-
207206
if err != nil {
208207
fmt.Fprintf(c.ErrOrStderr(), "%+v", err)
209208
fmt.Fprintln(c.ErrOrStderr())

0 commit comments

Comments
 (0)