Skip to content

Commit

Permalink
Handle case when fail fast / nil renderer
Browse files Browse the repository at this point in the history
  • Loading branch information
cyx committed Sep 5, 2020
1 parent 4f18dbe commit 977e9ce
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion internal/cli/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"os"

"github.com/auth0/auth0-cli/internal/config"
"github.com/auth0/auth0-cli/internal/display"
"github.com/spf13/afero"
"github.com/spf13/cobra"
)
Expand All @@ -18,7 +19,9 @@ func Execute() {
// 1. env var (e.g. AUTH0_API_KEY)
// 2. global flag (e.g. --api-key)
// 3. JSON file (e.g. api_key = "..." in ~/.config/auth0/config.json)
cfg := &config.Config{}
cfg := &config.Config{
Renderer: &display.Renderer{},
}

rootCmd := &cobra.Command{
Use: "auth0",
Expand Down

0 comments on commit 977e9ce

Please sign in to comment.