File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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`.
2929var 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 {}
Original file line number Diff line number Diff line change 2828
2929// LoginCmd provides the subcommand for logging into the FA server using the Device Flow.
3030var 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 ()
Original file line number Diff line number Diff line change 77
88// LogoutCmd logs the user out by cleaning the local state so the user needs to login again.
99var 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
You can’t perform that action at this time.
0 commit comments