feat(git-provider): Initial Get-GitRepo implementation
This commit is contained in:
parent
a0e29619a4
commit
af5c9e43b6
2 changed files with 30 additions and 0 deletions
|
|
@ -52,4 +52,15 @@ public class GitManager
|
|||
|
||||
throw new Exception($"Git repo already registered with the name {registrationName}");
|
||||
}
|
||||
|
||||
public List<GitReg> ListRepos()
|
||||
{
|
||||
return _registrations.Select(x => new GitReg() { Name = x.Value.Name, Location = x.Value.Location }).ToList();
|
||||
}
|
||||
}
|
||||
|
||||
public class GitReg
|
||||
{
|
||||
public required string Name { get; set; }
|
||||
public required string Location { get; set; }
|
||||
}
|
||||
Loading…
Reference in a new issue