feat: Add GitRepoRegistration cmdlets #5

Merged
pascal_nulah merged 69 commits from feature/git-provider into dev 2026-09-06 09:33:36 +10:00
2 changed files with 2 additions and 6 deletions
Showing only changes of commit 52f7260bf4 - Show all commits

chore(git-provider): Remove output from command constructors, change informational output to use WriteDebug

Scott 2026-08-24 10:02:10 +10:00

View file

@ -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);

View file

@ -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()