version: "3" vars: HOST: sh: | rustc --version --verbose | sed --quiet "s/host: //p" TARGETS: alist-cli ddns gfw pm tasks: default: - cargo check - cargo clippy clean: cmds: - cargo clean - cmd: rm --force --recursive --verbose dist silent: true dist: cmds: - cargo build --bins --release - cmd: install -D --no-target-directory --verbose "target/release/{{.ITEM}}{{exeExt}}" "dist/{{.ITEM}}-{{.HOST}}{{exeExt}}" for: var: TARGETS silent: true docs: cmds: - cmd: mkdir --parents --verbose docs silent: true - cmd: | mkdir --parents --verbose "docs/{{.ITEM}}" cargo run --bin="{{.ITEM}}" complete markdown > "docs/{{.ITEM}}/README.md" for: var: TARGETS - prettier --write docs