2025-02-25 17:23:25 -06:00
|
|
|
using System.Globalization;
|
|
|
|
|
using BlitzKit.CLI.Functions;
|
2025-01-28 12:59:59 -06:00
|
|
|
using BlitzKit.CLI.Utils;
|
2025-02-25 17:23:25 -06:00
|
|
|
using DotNetEnv;
|
2025-01-20 22:16:15 -06:00
|
|
|
|
2025-01-28 12:59:59 -06:00
|
|
|
namespace BlitzKit.CLI
|
2025-01-20 22:16:15 -06:00
|
|
|
{
|
|
|
|
|
class Program
|
|
|
|
|
{
|
2025-02-25 17:23:25 -06:00
|
|
|
public static CultureInfo Culture = new("en-US");
|
|
|
|
|
|
2025-01-25 23:51:18 -06:00
|
|
|
static async Task Main(string[] args)
|
2025-01-20 22:16:15 -06:00
|
|
|
{
|
2025-02-25 17:23:25 -06:00
|
|
|
Env.Load();
|
2025-01-27 22:17:13 -06:00
|
|
|
await AgnosticHelpers.Initialize();
|
|
|
|
|
|
2025-01-23 21:43:54 -06:00
|
|
|
switch (args[0])
|
2025-01-20 22:16:15 -06:00
|
|
|
{
|
2025-01-25 21:42:25 -06:00
|
|
|
case "unpack":
|
2025-01-23 21:43:54 -06:00
|
|
|
{
|
2025-01-25 23:51:18 -06:00
|
|
|
await Unpacker.Unpack(args);
|
2025-01-23 21:43:54 -06:00
|
|
|
break;
|
|
|
|
|
}
|
2025-01-25 21:42:25 -06:00
|
|
|
|
2025-04-06 10:44:26 -05:00
|
|
|
case "mangle":
|
2025-01-26 21:17:25 -06:00
|
|
|
{
|
2025-04-06 10:44:26 -05:00
|
|
|
Mangler mangler = new(args);
|
|
|
|
|
await mangler.Mangle();
|
2025-01-26 21:17:25 -06:00
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
|
2025-01-25 21:42:25 -06:00
|
|
|
default:
|
|
|
|
|
{
|
|
|
|
|
throw new ArgumentException("Invalid command");
|
|
|
|
|
}
|
2025-01-20 22:16:15 -06:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|