war-cli 0.1.1

A viewer/editor for Darksiders saves, worlds, and scripts
use failure::Error;
use structopt::StructOpt;

mod decode;

#[derive(StructOpt)]
pub enum Command {
    /// Decode a worlds file into human-readable JSON
    Decode(decode::Command),
}

impl Command {
    pub fn run(self) -> Result<(), Error> {
        match self {
            Self::Decode(command) => command.run(),
        }
    }
}