diff --git a/cmd/down.go b/cmd/down.go index ee10cd157..2bfc1b00a 100644 --- a/cmd/down.go +++ b/cmd/down.go @@ -31,6 +31,8 @@ var downCmd = &cobra.Command{ return err } + proj.Runtime.Shell.SetVerbosity(verbose) + if err := proj.Runtime.Shell.CheckTrustedDirectory(); err != nil { return fmt.Errorf("not in a trusted directory. If you are in a Windsor project, run 'windsor init' to approve") } diff --git a/cmd/exec.go b/cmd/exec.go index 9ab51dffc..fec797046 100644 --- a/cmd/exec.go +++ b/cmd/exec.go @@ -34,6 +34,8 @@ var execCmd = &cobra.Command{ return fmt.Errorf("failed to initialize context: %w", err) } + rt.Shell.SetVerbosity(verbose) + if err := rt.Shell.CheckTrustedDirectory(); err != nil { return fmt.Errorf("not in a trusted directory. If you are in a Windsor project, run 'windsor init' to approve") } diff --git a/cmd/install.go b/cmd/install.go index 10965dd5b..6cfdf39df 100644 --- a/cmd/install.go +++ b/cmd/install.go @@ -24,6 +24,8 @@ var installCmd = &cobra.Command{ return err } + proj.Runtime.Shell.SetVerbosity(verbose) + if err := proj.Runtime.Shell.CheckTrustedDirectory(); err != nil { return fmt.Errorf("not in a trusted directory. If you are in a Windsor project, run 'windsor init' to approve") } diff --git a/cmd/up.go b/cmd/up.go index 613aa9348..b61ac71d0 100644 --- a/cmd/up.go +++ b/cmd/up.go @@ -29,6 +29,8 @@ var upCmd = &cobra.Command{ return err } + proj.Runtime.Shell.SetVerbosity(verbose) + if err := proj.Runtime.Shell.CheckTrustedDirectory(); err != nil { return fmt.Errorf("not in a trusted directory. If you are in a Windsor project, run 'windsor init' to approve") }