cargo-insert-docs 1.8.0

Inserts feature docs into crate docs, and crate docs into README.
default:
    @just --list

pre-release:
    cargo fmt --check
    cargo clippy --all-features -- -D warnings
    cargo xtask ci
    just update-cli-md
    cargo +nightly test -p test-crate

update:
    just update-cli-md
    just update-expect

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

update-expect:
    cargo run -- -p test-crate
    UPDATE_EXPECT=1 cargo xtask ci