novel-cli 0.17.0

A set of tools for downloading novels from the web, manipulating text, and generating EPUB
Documentation
use std::fs;
use std::io::{self, Write};

use assert_cmd::cargo;
use testresult::TestResult;

#[test]
fn template() -> TestResult {
    let novel_name = "你好世界";

    let mut cmd = cargo::cargo_bin_cmd!();
    let output = cmd.args(["template", novel_name]).output()?;
    cmd.assert().success();

    io::stderr().write_all(&output.stdout)?;

    novel_cli::utils::ensure_pandoc_dir(novel_name)?;
    fs::remove_dir_all(novel_name)?;

    Ok(())
}