Files
blitzkit/src/BlitzKit.CLI/Program.cs
T

46 lines
859 B
C#
Raw Normal View History

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-04-08 16:25:35 -05:00
// case "unpack":
// {
// await Unpacker.Unpack(args);
// break;
// }
2025-01-25 21:42:25 -06:00
2025-04-08 16:25:35 -05:00
// case "mangle":
// {
// Mangler mangler = new(args);
// await mangler.Mangle();
// break;
// }
case "mangle2":
2025-01-26 21:17:25 -06:00
{
2025-04-08 16:25:35 -05:00
Mangler2 mangler2 = new(args);
mangler2.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
}
}
}
}