Compare commits

..
8 changed files with 16 additions and 5 deletions

View file

@ -1,12 +1,10 @@
using System.Management.Automation; using System.Management.Automation;
using ModuleCore.Git; using ModuleCore.Git;
using ModuleCore.Git.Models;
namespace PowershellModule.Git.Commands; namespace PowershellModule.Git.Commands;
[Cmdlet(VerbsCommon.Get, GitCommands.GitRepoNoun)] [Cmdlet(VerbsCommon.Get, GitCommands.GitRepoNoun)]
[OutputType(typeof(GitRegistration))] public class ListGitRepoCommand : PSCmdlet
public class GetGitRepoCommand : PSCmdlet
{ {
protected override void BeginProcessing() protected override void BeginProcessing()
{ {

View file

@ -1,4 +1,6 @@
using System; using System;
using System.Diagnostics;
using System.IO;
using System.Management.Automation; using System.Management.Automation;
using ModuleCore.Git; using ModuleCore.Git;

View file

@ -1,4 +1,5 @@
using System.Management.Automation; using System;
using System.Management.Automation;
using ModuleCore.Git; using ModuleCore.Git;
namespace PowershellModule.Git.Commands; namespace PowershellModule.Git.Commands;

View file

@ -10,6 +10,10 @@ public class GitProvider : NavigationCmdletProvider
{ {
public const string Name = "GitRepo"; public const string Name = "GitRepo";
public GitProvider()
{
}
protected override PSDriveInfo NewDrive(PSDriveInfo drive) protected override PSDriveInfo NewDrive(PSDriveInfo drive)
{ {
// This is a bit of a hack to ensure that no drive is registered with a root location. // This is a bit of a hack to ensure that no drive is registered with a root location.
@ -77,6 +81,6 @@ public class GitProvider : NavigationCmdletProvider
protected override bool IsValidPath(string path) protected override bool IsValidPath(string path)
{ {
throw new NotImplementedException(); throw new System.NotImplementedException();
} }
} }

View file

@ -7,5 +7,6 @@ public class GitPsDriveInfo : PSDriveInfo
protected GitPsDriveInfo(PSDriveInfo driveInfo) protected GitPsDriveInfo(PSDriveInfo driveInfo)
: base(driveInfo) : base(driveInfo)
{ {
} }
} }

View file

@ -0,0 +1,5 @@
{
"_TODO":[
"add manifest details here maybe idk"
]
}