dumber 4.0.0

A CLI tool to (un)number sections and add/remove toc(s) of a Markdown document
1
2
3
4
5
6
7
8
9
10
11
12
13
use std::process::Command;

fn main() {
    let githash = Command::new("git")
        .args(["rev-parse", "--short", "HEAD"])
        .output()
        .unwrap();
    println!(
        "{}",
        "cargo:rustc-env=GIT_COMMIT_SHORT_HASH=".to_owned()
            + String::from_utf8_lossy(&githash.stdout).trim()
    );
}