chore(git-provider): Remove output from command constructors, change informational output to use WriteDebug
This commit is contained in:
parent
48ad65e86c
commit
52f7260bf4
2 changed files with 2 additions and 6 deletions
|
|
@ -17,13 +17,12 @@ public sealed class NewGitRepoCommand : PSCmdlet
|
||||||
|
|
||||||
public NewGitRepoCommand()
|
public NewGitRepoCommand()
|
||||||
{
|
{
|
||||||
Console.WriteLine($"{nameof(NewGitRepoCommand)} init");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void BeginProcessing()
|
protected override void BeginProcessing()
|
||||||
{
|
{
|
||||||
var pwd = this.SessionState.Path.CurrentLocation.Path;
|
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);
|
var repoFolfder = IsGitRepo(pwd);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
using System;
|
using System.Management.Automation;
|
||||||
using System.Management.Automation;
|
|
||||||
using ModuleCore.Git;
|
using ModuleCore.Git;
|
||||||
|
|
||||||
namespace PowershellModule.Git.Commands;
|
namespace PowershellModule.Git.Commands;
|
||||||
|
|
@ -10,8 +9,6 @@ public class SetGitRepoCommand : PSCmdlet
|
||||||
{
|
{
|
||||||
public SetGitRepoCommand()
|
public SetGitRepoCommand()
|
||||||
{
|
{
|
||||||
Console.WriteLine($"{nameof(NewGitRepoCommand)} init");
|
|
||||||
var a = GitManager.Instance;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void BeginProcessing()
|
protected override void BeginProcessing()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue