-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
35 lines (32 loc) · 1.09 KB
/
Program.cs
File metadata and controls
35 lines (32 loc) · 1.09 KB
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
32
33
34
35
using System;
using ETHTPS.Control.Commands.DevEnv;
using ETHTPS.Control.Commands.Help;
using ETHTPS.Control.Commands.Status;
using ETHTPS.Control.Commands.System.Check;
using Spectre.Console;
using Spectre.Console.Cli;
namespace ETHTPS.Control
{
class Program
{
public static int Main(string[] args)
{
var app = new CommandApp();
app.Configure(config =>
{
config.AddCommand<SysCheckCommand>("syscheck")
.WithAlias("sc")
.WithDescription("Checks whether the current system is configured properly in order to run ETHTPS locally.")
.WithExample(new[] { "syscheck --base-dir=/path/to/ethtps syscheck [--prompt | -p]" });
config.AddCommand<DevEnvCommand>("devenv")
.WithAlias("dev")
.WithDescription("Opens one or more ETHTPS subprojects for code editing.")
.WithExample(new[] { "devenv --projects=backend,frontend" });
config.AddCommand<StatusCommand>("status")
.WithDescription("Checks the status of all ETHTPS system components.")
.WithExample(new[] { "status" });
});
return app.Run(args);
}
}
}