feat: Add GitRepoRegistration cmdlets #5
3 changed files with 0 additions and 24 deletions
refactor(git-provider): remove SetGitRepoCommand
commit
27117ce64b
|
|
@ -24,7 +24,6 @@ public sealed class NewGitRepoCommand : PSCmdlet
|
|||
var repoFolder = GitManager.IsGitRepo(SessionState.Path.CurrentLocation.Path);
|
||||
|
||||
GitManager.Instance.RegisterRepo(repoFolder.Directory, Name ?? repoFolder.Folder);
|
||||
|
||||
GitManager.ClearDebugWriter();
|
||||
|
||||
base.BeginProcessing();
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
@ -4,10 +4,6 @@ using ModuleCore.Git;
|
|||
|
||||
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)]
|
||||
public class ShowGitRepoCommand : PSCmdlet
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue