2020-05-02 20:15:36 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using CommandLine;
|
|
|
|
|
using Compression.BSA;
|
|
|
|
|
using Wabbajack.Common;
|
|
|
|
|
|
|
|
|
|
namespace Wabbajack.CLI.Verbs
|
|
|
|
|
{
|
|
|
|
|
[Verb("bsa-dump", HelpText = "Print detailed info about the contents of a BSA")]
|
|
|
|
|
public class BSADump : AVerb
|
|
|
|
|
{
|
|
|
|
|
[Option('i', "input", Required = true, HelpText = "Input BSA to dump")]
|
|
|
|
|
public string Input { get; set; } = "";
|
|
|
|
|
|
|
|
|
|
protected override async Task<ExitCode> Run()
|
|
|
|
|
{
|
2020-05-25 17:34:25 +00:00
|
|
|
|
await using var bsa = await BSADispatch.OpenRead(Input.RelativeTo(AbsolutePath.GetCurrentDirectory()));
|
|
|
|
|
bsa.Dump(Console.WriteLine);
|
2020-05-02 20:15:36 +00:00
|
|
|
|
return ExitCode.Ok;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|