-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathProgram.cs
31 lines (24 loc) · 1.1 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.ComponentModel;
using System.Diagnostics.CodeAnalysis;
using System.Text;
using Rbxpack.Application;
using Spectre.Console;
using Spectre.Console.Cli;
var app = new CommandApp();
app.Configure(config =>
{
System.Console.OutputEncoding = Encoding.UTF8;
System.Console.InputEncoding = Encoding.UTF8;
config.SetApplicationName("rbxpack");
// config.SetExceptionHandler(ex =>
// {
// AnsiConsole.WriteException(ex);
// return -99;
// });
config.AddCommand<BuildCommand>("build").WithDescription("Create sharable copies of the project that work on Novetus and ORRH launchers");
config.AddCommand<GitignoreCommand>("gitignore").WithDescription("Creates a gitignore file for an rbxpack project");
config.AddCommand<InitCommand>("init").WithDescription("Start a new rbxpack project");
config.AddCommand<LinkCommand>("link").WithDescription("Link project to configured launcher folders");
config.AddCommand<UnlinkCommand>("unlink").WithDescription("Unlink project from configured launcher folders");
});
return app.Run(args);