Skip to content

Conversation

@dobleuber
Copy link

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)

Add clap_mangen dependency.
Add man_pages module.
Implement man pages generation
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.

1 participant