feat: Add GitRepoRegistration cmdlets #5
2 changed files with 2 additions and 6 deletions
chore(git-provider): Remove output from command constructors, change informational output to use WriteDebug
commit
52f7260bf4
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue