-
Notifications
You must be signed in to change notification settings - Fork 3
/
Program.cs
31 lines (26 loc) · 1.03 KB
/
Program.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
using System.Threading.Tasks;
using Spectre.Console.Cli;
namespace Nuclear
{
public class Program
{
public static async Task Main(string[] args)
{
var app = new CommandApp();
app.Configure(config =>
{
config.SetApplicationName("nuclear");
config.AddCommand<ListVersionsCommand>("list")
.WithExample(new[] { "list", "newtonsoft.json" })
.WithExample(new[] { "list", "newtonsoft.json", "12.*" });
config.AddCommand<DeleteVersionsCommand>("delete")
.WithExample(new[] { "delete", "my.package", "1.0.0" })
.WithExample(new[] { "delete", "my.package", "1.1.*" })
.WithExample(new[] { "delete", "my.package", "2.0.0-*" })
.WithExample(new[] { "delete", "my.package", "3.*-*" })
.WithExample(new[] { "delete", "my.package", "*-*" });
});
await app.RunAsync(args);
}
}
}