cargo-insert-docs 0.19.0

Insert feature docs into your crate docs, and crate docs into your README.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
default:
    @just --list

pre-release:
    just update-cli-md
    cargo xtask ci
    cargo +nightly test -p test-crate

update-cli-md:
    #!/usr/bin/env nu
    stty cols 120
    let s = cargo run -q -- -h
    open docs/cli.md 
    | str replace --regex '(?<=```console\n)[\s\S]*?(?=```)' ("$ cargo insert-docs -h\n\n" ++ $s ++ "\n") 
    | save -f docs/cli.md