From 4df315f242df444e938878702cd41d5dd1b326a5 Mon Sep 17 00:00:00 2001 From: Cyril David Date: Wed, 20 Jan 2021 18:44:00 -0800 Subject: [PATCH] Don't spinner for `list / get` operations Spinners should actually be only for mutating operations --- internal/cli/clients.go | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/internal/cli/clients.go b/internal/cli/clients.go index 2a572d752..69ac41579 100644 --- a/internal/cli/clients.go +++ b/internal/cli/clients.go @@ -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 { @@ -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 }