36 lines
1.2 KiB
C#
36 lines
1.2 KiB
C#
/*
|
|
* WARNING:
|
|
* This tool was created by an LLM based on the SessionZero shared lib project, therefore it is subject to errors and does not reflect the architecture of the SessionZero project.
|
|
* It was created to be used as a quick and dirty validation tool for the szpack format.
|
|
*/
|
|
|
|
using Spectre.Console.Cli;
|
|
|
|
namespace SessionZero.Tools.Packer;
|
|
|
|
internal class Program
|
|
{
|
|
static int Main(string[] args)
|
|
{
|
|
var app = new CommandApp();
|
|
|
|
app.Configure(config =>
|
|
{
|
|
config.SetApplicationName("szpack");
|
|
|
|
config.AddCommand<CreateCommand>("create")
|
|
.WithDescription("Creates a new datapack directory with test objects.");
|
|
|
|
config.AddCommand<PackCommand>("pack")
|
|
.WithDescription("Compresses a datapack directory into a .szpack file.");
|
|
|
|
config.AddCommand<UnpackCommand>("unpack")
|
|
.WithDescription("Extracts a .szpack file and displays its metadata.");
|
|
|
|
// Optional: Set a default command if no command is specified
|
|
// config.SetDefaultCommand<HelpCommand>();
|
|
});
|
|
|
|
return app.Run(args);
|
|
}
|
|
} |