volta icon indicating copy to clipboard operation
volta copied to clipboard

Generate man pages for Volta

Open dobleuber opened this issue 1 year ago • 0 comments

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_mangen dependency to the project.
  • Created a new man_pages module in src/command/.
  • Implemented a new ManPages struct with Volta's Command trait.
  • Added a new ActivityKind for logging man page-related events.
  • Utilized the Man struct from clap_mangen to 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)

dobleuber avatar Oct 10 '24 03:10 dobleuber