mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
2855b1d1ca
This reverts commit 4fc53ce7b2
.
23 lines
666 B
C#
23 lines
666 B
C#
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()
|
|
{
|
|
var bsa = await BSADispatch.OpenRead(Input.RelativeTo(AbsolutePath.GetCurrentDirectory()));
|
|
bsa.Dump(Console.WriteLine);
|
|
return ExitCode.Ok;
|
|
}
|
|
}
|
|
}
|