Skip to content

Commit

Permalink
Don't spinner for list / get operations
Browse files Browse the repository at this point in the history
Spinners should actually be only for mutating operations
  • Loading branch information
cyx committed Jan 21, 2021
1 parent 9f5aee9 commit 4df315f
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions internal/cli/clients.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
package cli

import (
"github.com/auth0/auth0-cli/internal/ansi"
"github.com/spf13/cobra"
"gopkg.in/auth0.v5/management"
)

func clientsCmd(cli *cli) *cobra.Command {
Expand All @@ -28,13 +26,7 @@ Lists your existing clients. To create one try:
$ auth0 client create
`,
RunE: func(cmd *cobra.Command, args []string) error {
var list *management.ClientList

err := ansi.Spinner("Listing clients", func() (err error) {
list, err = cli.api.Client.List()
return err
})

list, err := cli.api.Client.List()
if err != nil {
return err
}
Expand Down

0 comments on commit 4df315f

Please sign in to comment.