mirror of
https://github.com/FalloutCollaborationProject/FCP-Mod-Updater.git
synced 2026-07-27 17:04:05 -07:00
23 lines
670 B
C#
23 lines
670 B
C#
using FCPModUpdater.Commands;
|
|||
|
|
using Spectre.Console.Cli;
|
||
|
|
|
||
|
|
var app = new CommandApp();
|
||
|
|
|
||
|
|
app.Configure(config =>
|
||
|
|
{
|
||
|
|
config.SetApplicationName("fcp-mod-manager");
|
||
|
|
config.SetApplicationVersion("1.0.0");
|
||
|
|
|
||
|
|
config.AddCommand<ScanCommand>("scan")
|
||
|
|
.WithDescription("Scan mods and show interactive menu")
|
||
|
|
.WithExample("scan")
|
||
|
|
.WithExample("scan", "--directory", "/path/to/RimWorld/Mods");
|
||
|
|
|
||
|
|
config.AddCommand<UpdateCommand>("update")
|
||
|
|
.WithDescription("Update all FCP mods (non-interactive)")
|
||
|
|
.WithExample("update")
|
||
|
|
.WithExample("update", "--directory", "/path/to/RimWorld/Mods");
|
||
|
|
});
|
||
|
|
|
||
|
|
return await app.RunAsync(args);
|