Initial commits

This commit is contained in:
Patrik Svensson
2024-08-05 21:20:18 +02:00
commit a3cc9f5f72
110 changed files with 4506 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
using System.Linq;
using Spectre.Console.Cli;
namespace Dynamic;
public static class Program
{
public static int Main(string[] args)
{
var app = new CommandApp();
app.Configure(config =>
{
foreach (var index in Enumerable.Range(1, 10))
{
config.AddCommand<MyCommand>($"c{index}")
.WithDescription($"Prints the number {index}")
.WithData(index);
}
});
return app.Run(args);
}
}