refactor(git-provider): remove SetGitRepoCommand

This commit is contained in:
Scott 2026-08-25 11:18:52 +10:00
commit 27117ce64b
3 changed files with 0 additions and 24 deletions

View file

@ -24,7 +24,6 @@ public sealed class NewGitRepoCommand : PSCmdlet
var repoFolder = GitManager.IsGitRepo(SessionState.Path.CurrentLocation.Path); var repoFolder = GitManager.IsGitRepo(SessionState.Path.CurrentLocation.Path);
GitManager.Instance.RegisterRepo(repoFolder.Directory, Name ?? repoFolder.Folder); GitManager.Instance.RegisterRepo(repoFolder.Directory, Name ?? repoFolder.Folder);
GitManager.ClearDebugWriter(); GitManager.ClearDebugWriter();
base.BeginProcessing(); base.BeginProcessing();

View file

@ -1,19 +0,0 @@
using System.Management.Automation;
using ModuleCore.Git;
namespace PowershellModule.Git.Commands;
// TODO: decide if I want to use this verb instead of show. Currently this implementation is under Show-GitRepo
[Cmdlet(VerbsCommon.Set, GitCommands.GitRepoNoun)]
public class SetGitRepoCommand : PSCmdlet
{
public SetGitRepoCommand()
{
}
protected override void BeginProcessing()
{
SessionState.Path.SetLocation("F:/Repos/PowershellModule/src/PowershellModule/Git");
base.BeginProcessing();
}
}

View file

@ -4,10 +4,6 @@ using ModuleCore.Git;
namespace PowershellModule.Git.Commands; namespace PowershellModule.Git.Commands;
// TODO: decide on if I like Show to be used as the verb name. Other options I have are push/pop and open.
// Seeing as this is likely just for me currently, Show-GitRepo suits my workflow more where I'll want to quickly just
// pushd into a git repo, do whatever I want to do with it/change directories in it whatever, and then popd at the end.
// I'll also be integrating the current stack into the custom prompt whenever I get around to doing that
[Cmdlet(VerbsCommon.Show, GitCommands.GitRepoNoun)] [Cmdlet(VerbsCommon.Show, GitCommands.GitRepoNoun)]
public class ShowGitRepoCommand : PSCmdlet public class ShowGitRepoCommand : PSCmdlet
{ {