GetDiffQuery.cs 246 B

1234567891011
  1. namespace RackPeek.Domain.Git.Queries;
  2. public interface IGetDiffQuery
  3. {
  4. string Execute();
  5. }
  6. public class GetDiffQuery(IGitRepository repo) : IGetDiffQuery
  7. {
  8. public string Execute() => repo.IsAvailable ? repo.GetDiff() : string.Empty;
  9. }