From 1e728af51b792e2f68cd2b76bfab8aa2a39657ec Mon Sep 17 00:00:00 2001 From: Thomas Bruyelle Date: Mon, 12 Dec 2022 14:13:54 +0100 Subject: [PATCH] chore: IGNT_DEBUG enables cmdrunner debug This is helpful when you need to know what command is responsible for a particular change, like in #3268. --- ignite/pkg/cmdrunner/cmdrunner.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ignite/pkg/cmdrunner/cmdrunner.go b/ignite/pkg/cmdrunner/cmdrunner.go index 56a2f31758..dbe16eab26 100644 --- a/ignite/pkg/cmdrunner/cmdrunner.go +++ b/ignite/pkg/cmdrunner/cmdrunner.go @@ -11,6 +11,7 @@ import ( "golang.org/x/sync/errgroup" "github.com/ignite/cli/ignite/pkg/cmdrunner/step" + "github.com/ignite/cli/ignite/pkg/env" "github.com/ignite/cli/ignite/pkg/goenv" ) @@ -80,6 +81,7 @@ func EnableDebug() Option { func New(options ...Option) *Runner { runner := &Runner{ endSignal: os.Interrupt, + debug: env.DebugEnabled(), } for _, apply := range options { apply(runner)