code_style: move SourceGit.CommandExtensions to SourceGit.ViewModels.CommandExtensions

Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
leo 2025-04-18 10:24:20 +08:00
parent afe5d4b969
commit 892f3b8032
No known key found for this signature in database
4 changed files with 14 additions and 16 deletions

View file

@ -84,4 +84,13 @@ namespace SourceGit.ViewModels
private StringBuilder _builder = new StringBuilder();
private event Action<string> _onNewLineReceived;
}
public static class CommandExtensions
{
public static T Use<T>(this T cmd, CommandLog log) where T : Commands.Command
{
cmd.Log = log;
return cmd;
}
}
}