using System;
namespace SourceGit.Commands {
///
/// GC
///
public class GC : Command {
private Action handler;
public GC(string repo, Action onProgress) {
Cwd = repo;
Args = "gc";
TraitErrorAsOutput = true;
handler = onProgress;
}
public override void OnReadline(string line) {
handler?.Invoke(line);
}
}
}