From 977e9ce50ef4d3c6fcc01255af72c72e41746976 Mon Sep 17 00:00:00 2001 From: Cyril David Date: Fri, 4 Sep 2020 23:24:24 -0700 Subject: [PATCH] Handle case when fail fast / nil renderer --- internal/cli/root.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/internal/cli/root.go b/internal/cli/root.go index 7dd740440..d348831d0 100644 --- a/internal/cli/root.go +++ b/internal/cli/root.go @@ -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" ) @@ -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",