Add --man subcommand (#2041)

This commit is contained in:
Casey Rodarmor
2024-05-15 00:28:50 -07:00
committed by GitHub
parent 07aaa4f440
commit a9b0912b2b
22 changed files with 220 additions and 159 deletions

View File

@@ -43,13 +43,7 @@ shellcheck:
shellcheck www/install.sh
man:
cargo build --features help4help2man
help2man \
--name 'save and run commands' \
--manual 'Just Manual' \
--no-info \
target/debug/just \
> man/just.1
cargo run -- --man > man/just.1
view-man: man
man man/just.1
@@ -115,10 +109,6 @@ install-dev-deps:
cargo install cargo-watch
cargo install mdbook mdbook-linkcheck
# install system development dependencies with homebrew
install-dev-deps-homebrew:
brew install help2man
# everyone's favorite animate paper clip
clippy:
cargo clippy --all --all-targets --all-features