volta
volta copied to clipboard
Generate man pages for Volta
Implementation of man pages for Volta
Solution for #1709
This PR adds support for generating man pages in Volta, using the clap_mangen crate.
Key Changes
- Added
clap_mangendependency to the project. - Created a new
man_pagesmodule insrc/command/. - Implemented a new
ManPagesstruct with Volta'sCommandtrait. - Added a new
ActivityKindfor logging man page-related events. - Utilized the
Manstruct fromclap_mangento generate man pages from Volta's command. - Implemented logic to emit the generated roff content to the appropriate location based on the operating system.
- Updated the installation script to include man page generation and placement during installation.
Special Considerations
- Implemented support for Windows, despite the lack of a standard location for man pages on this operating system.(WIP)