From ec3828a34ccd07d47623d83d32205cfada658a9e Mon Sep 17 00:00:00 2001 From: Ryan VanGundy <85766511+rmvangun@users.noreply.github.com> Date: Thu, 20 Nov 2025 23:12:06 -0500 Subject: [PATCH] fix(cmd): Set verbose correctly Verbose needed to be set using `shell.SetVerbosity` for several commands. Thsi functionality was dropped in the last refactor. Signed-off-by: Ryan VanGundy <85766511+rmvangun@users.noreply.github.com> --- cmd/down.go | 2 ++ cmd/exec.go | 2 ++ cmd/install.go | 2 ++ cmd/up.go | 2 ++ 4 files changed, 8 insertions(+) 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") }