2020-05-02 20:15:36 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using CommandLine;
|
2020-06-27 17:04:59 +00:00
|
|
|
|
using Compression.BSA;
|
2020-05-02 20:15:36 +00:00
|
|
|
|
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-06-26 19:01:10 +00:00
|
|
|
|
var bsa = await BSADispatch.OpenRead(Input.RelativeTo(AbsolutePath.GetCurrentDirectory()));
|
2020-05-25 17:34:25 +00:00
|
|
|
|
bsa.Dump(Console.WriteLine);
|
2020-05-02 20:15:36 +00:00
|
|
|
|
return ExitCode.Ok;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|