mirror of
https://github.com/Tyrrrz/CliFx.git
synced 2025-10-25 15:19:17 +00:00
24 lines
653 B
C#
24 lines
653 B
C#
using System.Reflection;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace CliFx.Tests.Dummy
|
|
{
|
|
// This dummy application is used in tests for scenarios
|
|
// that require an external process to properly verify.
|
|
|
|
public static partial class Program
|
|
{
|
|
public static Assembly Assembly { get; } = typeof(Program).Assembly;
|
|
|
|
public static string Location { get; } = Assembly.Location;
|
|
}
|
|
|
|
public static partial class Program
|
|
{
|
|
public static async Task Main() =>
|
|
await new CliApplicationBuilder()
|
|
.AddCommandsFromThisAssembly()
|
|
.Build()
|
|
.RunAsync();
|
|
}
|
|
} |