using CliFx; using CliFx.Attributes; using CliFx.Infrastructure; using ReCodeIt.Utils; using ReCodeItLib.Dumper; namespace ReCodeIt.Commands; [Command("Dumper", Description = "Generates a dumper zip")] public class Dumper : ICommand { [CommandParameter(0, IsRequired = true, Description = "The absolute path to your Managed folder for EFT, folder must contain all references to be resolved.")] public string ManagedDirectory { get; init; } public ValueTask ExecuteAsync(IConsole console) { DataProvider.IsCli = true; DataProvider.LoadAppSettings(); Logger.Log("Creating Dumper..."); ReCodeItLib.Dumper.Dumper.CreateDumper(ManagedDirectory); Logger.Log("Complete", ConsoleColor.Green); // Wait for log termination Logger.Terminate(); while (Logger.IsRunning()) { } return default; } }