mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
30 lines
1.0 KiB
C#
30 lines
1.0 KiB
C#
using System.Collections.Generic;
|
|
|
|
namespace Semmle.Extraction.CSharp.DependencyFetching
|
|
{
|
|
internal interface IDotNetCliInvoker
|
|
{
|
|
/// <summary>
|
|
/// The name of the dotnet executable.
|
|
/// </summary>
|
|
string Exec { get; }
|
|
|
|
/// <summary>
|
|
/// Execute `dotnet <args>` and return true if the command succeeded, otherwise false.
|
|
/// </summary>
|
|
bool RunCommand(string args);
|
|
|
|
/// <summary>
|
|
/// Execute `dotnet <args>` and return true if the command succeeded, otherwise false.
|
|
/// The output of the command is returned in `output`.
|
|
/// </summary>
|
|
bool RunCommand(string args, out IList<string> output);
|
|
|
|
/// <summary>
|
|
/// Execute `dotnet <args>` in `<workingDirectory>` and return true if the command succeeded, otherwise false.
|
|
/// The output of the command is returned in `output`.
|
|
/// </summary>
|
|
bool RunCommand(string args, string? workingDirectory, out IList<string> output);
|
|
}
|
|
}
|