From 52f7260bf457aa3a7f79837a7acf095b2faf4857 Mon Sep 17 00:00:00 2001 From: Scott Date: Mon, 24 Aug 2026 10:02:10 +1000 Subject: [PATCH] chore(git-provider): Remove output from command constructors, change informational output to use WriteDebug --- src/PowershellModule/Git/Commands/NewGitRepoCommand.cs | 3 +-- src/PowershellModule/Git/Commands/SetGitRepoCommand.cs | 5 +---- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/PowershellModule/Git/Commands/NewGitRepoCommand.cs b/src/PowershellModule/Git/Commands/NewGitRepoCommand.cs index 5aabd59..4078837 100644 --- a/src/PowershellModule/Git/Commands/NewGitRepoCommand.cs +++ b/src/PowershellModule/Git/Commands/NewGitRepoCommand.cs @@ -17,13 +17,12 @@ public sealed class NewGitRepoCommand : PSCmdlet public NewGitRepoCommand() { - Console.WriteLine($"{nameof(NewGitRepoCommand)} init"); } protected override void BeginProcessing() { var pwd = this.SessionState.Path.CurrentLocation.Path; - WriteObject("Checking if current directory is a git repository..."); + WriteDebug("Checking if current directory is a git repository..."); var repoFolfder = IsGitRepo(pwd); diff --git a/src/PowershellModule/Git/Commands/SetGitRepoCommand.cs b/src/PowershellModule/Git/Commands/SetGitRepoCommand.cs index 69c4a34..383b436 100644 --- a/src/PowershellModule/Git/Commands/SetGitRepoCommand.cs +++ b/src/PowershellModule/Git/Commands/SetGitRepoCommand.cs @@ -1,5 +1,4 @@ -using System; -using System.Management.Automation; +using System.Management.Automation; using ModuleCore.Git; namespace PowershellModule.Git.Commands; @@ -10,8 +9,6 @@ public class SetGitRepoCommand : PSCmdlet { public SetGitRepoCommand() { - Console.WriteLine($"{nameof(NewGitRepoCommand)} init"); - var a = GitManager.Instance; } protected override void BeginProcessing()