mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-22 03:07:04 +02:00
40 lines
694 B
C#
40 lines
694 B
C#
using System.Globalization;
|
|
using BlitzKit.CLI.Functions;
|
|
using BlitzKit.CLI.Utils;
|
|
using DotNetEnv;
|
|
|
|
namespace BlitzKit.CLI
|
|
{
|
|
class Program
|
|
{
|
|
public static CultureInfo Culture = new("en-US");
|
|
|
|
static async Task Main(string[] args)
|
|
{
|
|
Env.Load();
|
|
await AgnosticHelpers.Initialize();
|
|
|
|
switch (args[0])
|
|
{
|
|
case "unpack":
|
|
{
|
|
await Unpacker.Unpack(args);
|
|
break;
|
|
}
|
|
|
|
case "mangle":
|
|
{
|
|
Mangler mangler = new(args);
|
|
await mangler.Mangle();
|
|
break;
|
|
}
|
|
|
|
default:
|
|
{
|
|
throw new ArgumentException("Invalid command");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|