Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate shell completions and man page for b3sum at build time #391

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

sorairolake
Copy link
Contributor

@sorairolake sorairolake commented Apr 24, 2024

With this change, the following files will be generated when building b3sum:

  • A man page (b3sum.1).
  • Shell completions files for Bash (b3sum.bash), Elvish (b3sum.elv), fish (b3sum.fish), PowerShell (_b3sum.ps1), and Zsh (_b3sum).

To find where these files are generated run the following command in b3sum/:

find ./target -path '*/b3sum-*/out' -type d

To use these, install them to the destination (e.g., /usr/share/man/man1 or /usr/share/bash-completion/completions).

Also, I set rust-version to Cargo.toml. This is based on the value of .github/workflows/ci.yml. If there is no value, 1.56.0 is set based on edition.

This closes #190 and closes #235.

@sorairolake sorairolake force-pushed the generate-shell-completions-and-man-page branch 3 times, most recently from b59b7ed to addd6b2 Compare April 24, 2024 21:54
@sorairolake
Copy link
Contributor Author

Bump the MSRV of blake3 to 1.72.0. This is because the MSRV of zeroize v1.8.0 is 1.72.0, and the CI will fail if the MSRV of blake3 isn't bumped.

@sorairolake sorairolake marked this pull request as draft April 25, 2024 06:53
@sorairolake sorairolake force-pushed the generate-shell-completions-and-man-page branch from 4238c13 to 3ce50be Compare April 25, 2024 09:02
@sorairolake sorairolake marked this pull request as ready for review April 25, 2024 09:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Shell completions for b3sum Missing man pages
1 participant