-
Notifications
You must be signed in to change notification settings - Fork 124
Generate documentation for command line interfaces #3816
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
Comments
Cool idea. I think there could be some configuration that we could provide. Tricky to read the |
@srawlins you can obtain it programmatically if the CLI was built using |
That's what I mean, I think. You cannot statically determine what command documentation is. You have to programmatically determine it (run the code), executing calls to |
I think this is and should be outside the scope of Some options that could alleviate these problems could be: Option (A): Leverage
|
Some people (like me) love publishing some command line apps on pub. Happens that often, such packages do not include a public API as code. Rather, the API is through commands and options to be executed in the terminal. Almost always using
package:args
.To document such CLIs, maintainers must resource to the old ways and keep files such as the README up to date (manual work 😱).
It would be awesome if
https://pub.dev/documentation/<package_name>/latest/
would also present pages with the commands available and their respective help message (often obtained via--help
).The text was updated successfully, but these errors were encountered: