19 lines
No EOL
369 B
C#
19 lines
No EOL
369 B
C#
using System.Management.Automation;
|
|
using ModuleCore.Git;
|
|
|
|
namespace PowershellModule.Git.Commands;
|
|
|
|
[Cmdlet(VerbsCommon.Get, Noun)]
|
|
public class ListGitRepoCommand : PSCmdlet
|
|
{
|
|
private const string Noun = "GitRepo";
|
|
|
|
protected override void BeginProcessing()
|
|
{
|
|
var repos = GitManager.Instance.ListRepos();
|
|
|
|
WriteObject(repos);
|
|
|
|
base.BeginProcessing();
|
|
}
|
|
} |