From 9eb58698fa5038b84af323855f556c71bf9790ee Mon Sep 17 00:00:00 2001 From: Scott Date: Tue, 25 Aug 2026 13:37:47 +1000 Subject: [PATCH 1/4] chore(git-provider): Code style --- src/PowershellModule/Git/Commands/NewGitRepoCommand.cs | 2 -- src/PowershellModule/Git/Commands/ShowGitRepoCommand.cs | 3 +-- src/PowershellModule/Git/GitProvider.cs | 6 +----- src/PowershellModule/Git/GitPsDriveInfo.cs | 1 - 4 files changed, 2 insertions(+), 10 deletions(-) diff --git a/src/PowershellModule/Git/Commands/NewGitRepoCommand.cs b/src/PowershellModule/Git/Commands/NewGitRepoCommand.cs index bccd95f..15678f9 100644 --- a/src/PowershellModule/Git/Commands/NewGitRepoCommand.cs +++ b/src/PowershellModule/Git/Commands/NewGitRepoCommand.cs @@ -1,6 +1,4 @@ using System; -using System.Diagnostics; -using System.IO; using System.Management.Automation; using ModuleCore.Git; diff --git a/src/PowershellModule/Git/Commands/ShowGitRepoCommand.cs b/src/PowershellModule/Git/Commands/ShowGitRepoCommand.cs index 3394ef3..8a805e1 100644 --- a/src/PowershellModule/Git/Commands/ShowGitRepoCommand.cs +++ b/src/PowershellModule/Git/Commands/ShowGitRepoCommand.cs @@ -1,5 +1,4 @@ -using System; -using System.Management.Automation; +using System.Management.Automation; using ModuleCore.Git; namespace PowershellModule.Git.Commands; diff --git a/src/PowershellModule/Git/GitProvider.cs b/src/PowershellModule/Git/GitProvider.cs index e340c2b..7d643ee 100644 --- a/src/PowershellModule/Git/GitProvider.cs +++ b/src/PowershellModule/Git/GitProvider.cs @@ -10,10 +10,6 @@ public class GitProvider : NavigationCmdletProvider { public const string Name = "GitRepo"; - public GitProvider() - { - } - protected override PSDriveInfo NewDrive(PSDriveInfo drive) { // This is a bit of a hack to ensure that no drive is registered with a root location. @@ -81,6 +77,6 @@ public class GitProvider : NavigationCmdletProvider protected override bool IsValidPath(string path) { - throw new System.NotImplementedException(); + throw new NotImplementedException(); } } \ No newline at end of file diff --git a/src/PowershellModule/Git/GitPsDriveInfo.cs b/src/PowershellModule/Git/GitPsDriveInfo.cs index 2566267..7b0d691 100644 --- a/src/PowershellModule/Git/GitPsDriveInfo.cs +++ b/src/PowershellModule/Git/GitPsDriveInfo.cs @@ -7,6 +7,5 @@ public class GitPsDriveInfo : PSDriveInfo protected GitPsDriveInfo(PSDriveInfo driveInfo) : base(driveInfo) { - } } \ No newline at end of file From 50752c069950fa8a0d522d0bf5da6da678bd7851 Mon Sep 17 00:00:00 2001 From: Scott Date: Tue, 25 Aug 2026 13:40:14 +1000 Subject: [PATCH 2/4] chore: Remove unneeded files --- src/PowershellModule/manifest.json | 5 ----- src/PowershellModule/meta/PowershellModule.psd1 | 0 src/PowershellModule/meta/PowershellModule.psm1 | 0 3 files changed, 5 deletions(-) delete mode 100644 src/PowershellModule/manifest.json delete mode 100644 src/PowershellModule/meta/PowershellModule.psd1 delete mode 100644 src/PowershellModule/meta/PowershellModule.psm1 diff --git a/src/PowershellModule/manifest.json b/src/PowershellModule/manifest.json deleted file mode 100644 index 3039b76..0000000 --- a/src/PowershellModule/manifest.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "_TODO":[ - "add manifest details here maybe idk" - ] -} \ No newline at end of file diff --git a/src/PowershellModule/meta/PowershellModule.psd1 b/src/PowershellModule/meta/PowershellModule.psd1 deleted file mode 100644 index e69de29..0000000 diff --git a/src/PowershellModule/meta/PowershellModule.psm1 b/src/PowershellModule/meta/PowershellModule.psm1 deleted file mode 100644 index e69de29..0000000 From e49b322ec06fa691601097a04f6f638b63a480bf Mon Sep 17 00:00:00 2001 From: Scott Date: Tue, 25 Aug 2026 13:41:20 +1000 Subject: [PATCH 3/4] chore(git-provider): Rename class to match file name --- src/PowershellModule/Git/Commands/GetGitRepoCommand.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PowershellModule/Git/Commands/GetGitRepoCommand.cs b/src/PowershellModule/Git/Commands/GetGitRepoCommand.cs index 1859375..206f40d 100644 --- a/src/PowershellModule/Git/Commands/GetGitRepoCommand.cs +++ b/src/PowershellModule/Git/Commands/GetGitRepoCommand.cs @@ -4,7 +4,7 @@ using ModuleCore.Git; namespace PowershellModule.Git.Commands; [Cmdlet(VerbsCommon.Get, GitCommands.GitRepoNoun)] -public class ListGitRepoCommand : PSCmdlet +public class GetGitRepoCommand : PSCmdlet { protected override void BeginProcessing() { From 5f04ed4262235d9f07af627f99b2ad0da058e59d Mon Sep 17 00:00:00 2001 From: Scott Date: Tue, 25 Aug 2026 14:54:31 +1000 Subject: [PATCH 4/4] feat(git-provider): Set OutputType for GetGitRepoCommand --- src/PowershellModule/Git/Commands/GetGitRepoCommand.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/PowershellModule/Git/Commands/GetGitRepoCommand.cs b/src/PowershellModule/Git/Commands/GetGitRepoCommand.cs index 206f40d..a719fc5 100644 --- a/src/PowershellModule/Git/Commands/GetGitRepoCommand.cs +++ b/src/PowershellModule/Git/Commands/GetGitRepoCommand.cs @@ -1,9 +1,11 @@ using System.Management.Automation; using ModuleCore.Git; +using ModuleCore.Git.Models; namespace PowershellModule.Git.Commands; [Cmdlet(VerbsCommon.Get, GitCommands.GitRepoNoun)] +[OutputType(typeof(GitRegistration))] public class GetGitRepoCommand : PSCmdlet { protected override void BeginProcessing()