mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
C#: Rename DotnetCommand to DotNetCliInvoker.
This commit is contained in:
@@ -11,17 +11,17 @@ namespace Semmle.Extraction.CSharp.DependencyFetching
|
||||
/// </summary>
|
||||
internal partial class DotNet : IDotNet
|
||||
{
|
||||
private readonly IDotnetCommand dotnet;
|
||||
private readonly IDotNetCliInvoker dotnet;
|
||||
private readonly ProgressMonitor progressMonitor;
|
||||
|
||||
internal DotNet(IDotnetCommand dotnet, ProgressMonitor progressMonitor)
|
||||
internal DotNet(IDotNetCliInvoker dotnet, ProgressMonitor progressMonitor)
|
||||
{
|
||||
this.progressMonitor = progressMonitor;
|
||||
this.dotnet = dotnet;
|
||||
Info();
|
||||
}
|
||||
|
||||
public DotNet(IDependencyOptions options, ProgressMonitor progressMonitor) : this(new DotnetCommand(progressMonitor, Path.Combine(options.DotNetPath ?? string.Empty, "dotnet")), progressMonitor) { }
|
||||
public DotNet(IDependencyOptions options, ProgressMonitor progressMonitor) : this(new DotNetCliInvoker(progressMonitor, Path.Combine(options.DotNetPath ?? string.Empty, "dotnet")), progressMonitor) { }
|
||||
|
||||
|
||||
private void Info()
|
||||
|
||||
@@ -7,13 +7,13 @@ namespace Semmle.Extraction.CSharp.DependencyFetching
|
||||
/// <summary>
|
||||
/// Low level utilities to run the "dotnet" command.
|
||||
/// </summary>
|
||||
internal sealed class DotnetCommand : IDotnetCommand
|
||||
internal sealed class DotNetCliInvoker : IDotNetCliInvoker
|
||||
{
|
||||
private readonly ProgressMonitor progressMonitor;
|
||||
|
||||
public string Exec { get; }
|
||||
|
||||
public DotnetCommand(ProgressMonitor progressMonitor, string exec)
|
||||
public DotNetCliInvoker(ProgressMonitor progressMonitor, string exec)
|
||||
{
|
||||
this.progressMonitor = progressMonitor;
|
||||
this.Exec = exec;
|
||||
@@ -2,7 +2,7 @@ using System.Collections.Generic;
|
||||
|
||||
namespace Semmle.Extraction.CSharp.DependencyFetching
|
||||
{
|
||||
internal interface IDotnetCommand
|
||||
internal interface IDotNetCliInvoker
|
||||
{
|
||||
/// <summary>
|
||||
/// The name of the dotnet executable.
|
||||
Reference in New Issue
Block a user