Skip to content

Commit 70dd1ac

Browse files
committed
Updates all commands use slightly
1 parent 4b08e47 commit 70dd1ac

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

cmd/fetch.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ type search struct {
2727

2828
// FetchCmd provides the Cobra sub command for fetching a gif. Requires the user to be logged in via `login`.
2929
var FetchCmd = &cobra.Command{
30-
Use: "fetch [no options!]",
30+
Use: "fetch",
3131
Short: "Fetch a random gif from giphy. User must be logged in before using fetch.",
3232
Run: func(cmd *cobra.Command, args []string) {
3333
var user fusionauth.User = fusionauth.User{}

cmd/login.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ var (
2828

2929
// LoginCmd provides the subcommand for logging into the FA server using the Device Flow.
3030
var LoginCmd = &cobra.Command{
31-
Use: "login [no options!]",
32-
Short: "Login to the FA server using the OAuth Device Flow.",
31+
Use: "login",
32+
Short: "Authenticate to the FA server using the OAuth Device Flow.",
3333
Run: func(cmd *cobra.Command, args []string) {
3434
faClient = fusionauth.NewClient(httpClient, baseURL, APIKey)
3535
openIDConfig, err := faClient.RetrieveOpenIdConfiguration()

cmd/logout.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import (
77

88
// LogoutCmd logs the user out by cleaning the local state so the user needs to login again.
99
var LogoutCmd = &cobra.Command{
10-
Use: "logout [no options!]",
11-
Short: "log out the user by removing the user's session from local state.",
10+
Use: "logout",
11+
Short: "Logs out the user by removing the user's session from local state.",
1212
Run: func(cmd *cobra.Command, args []string) {
1313
Remove("/tmp/getgif.json")
1414

0 commit comments

Comments
 (0)