To get started, you'll need:
git clone https://github.com/Gophercraft/mpq mpq && cd mpq
go install github.com/Gophercraft/mpq/cmd/mopaqThe export command mass-exports one or more MPQs into a directory, specified by the --export-directory flag.
mopaq export sample/test.SC2Replay --export-directory /tmp/test-sc2-replayIf desired, rather than specifying a list of MPQs manually, you can load a JSON list of MPQs from a file.
mopaq export wotlk-chain.json --export-directory /tmp/wotlk/The list command lists the contents of one or more MPQs.
mopaq list sample/test.SC2ReplayIf desired, the -a / --hash-algorithm flag will display the filenames along with hash checksums.
mopaq list sample/test.SC2Replay -a sha256The info command outputs diagnostic information about a single MPQ archive.
mopaq info sample/test.SC2Replay