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

Feature request: generation of man pages or AsciiDoc #487

Open
kravemir opened this issue Feb 12, 2024 · 1 comment
Open

Feature request: generation of man pages or AsciiDoc #487

kravemir opened this issue Feb 12, 2024 · 1 comment

Comments

@kravemir
Copy link

kravemir commented Feb 12, 2024

I am exploring options for command line interfaces for Kotlin, and found this library.

One of my needs is an export to unix man pages or AsciiDoc files.


picocli supports this:

From picocli 4.2, the picocli-codegen module has a ManPageGenerator tool that can generate AsciiDoc documentation using the manpage doctype and manpage document structure. The generated AsciiDoc files can be converted to HTML, PDF and unix man pages with the wonderful asciidoctor tool.

And, the generation can even be made to be part of gradle build - example.


Is there something like that for Click?

@ajalt
Copy link
Owner

ajalt commented Feb 12, 2024

Clikt doesn't have anything like that currently, but it should be straight forward to implement a HelpFormatter that would print out whatever format you want.

@kravemir kravemir changed the title Generation of man pages or AsciiDoc Feature request: generation of man pages or AsciiDoc Feb 13, 2024
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

No branches or pull requests

2 participants