-
Notifications
You must be signed in to change notification settings - Fork 43
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
provide command line info on plugins #29
Comments
Sounds easy enough to emit a list, but the function signature depends on the input parameters. How would the user provide these on the command line? |
I'd just document it like:
|
May I ask why, since there are already godocs and examples available on github. |
I'd prefer not to go to github every time I wonder what plugins are available or when I'm wondering what a particular plugin does (in the same way that I often use "go doc" rather than going online to the Go documentation). Also, I'm not always online. The help for a given plugin could just copy some of the package doc comment from github.com/awalterschulze/goderive/plugin/$pluginname and print that, I guess, to |
Interesting. Ok so then how would that be different than running:
Or
|
Not that much, apart from the fact that:
Note that the user will almost never be in the goderive root directory, so your first suggestion probably won't work most of the time. |
Good points. Ok so for example fmap I would get a godoc like this
|
But we would prefer
|
If so then we could generate this doc from the godoc as you suggested and avoid more duplication of documentation. |
Yes, this looks nice.
This has a potential ambiguity issue if the stdlib ever adds "help" or "list" packages, but I think we can be safe that even if they do, noone will actually want to run goderive on them :-) |
I think list should also take into account the pluginprefixes and print out a list of plugin name : prefix : first line of goderive help
What do you think? |
Perhaps. That seems a little verbose though. I suspect it might be nicer if each plugin provided a single line summary:
It might be nice to be able to get list to show the function signatures too, similarly to how the godoc page for a package shows the function signatures at the top. |
Is this acceptable?
where doc is the print out we discussed before.
So that we can also have:
|
Any update for |
No, but from the discussion I think the output format is decided. Looking for volunteers. |
It would be nice to be able to list the available plugins from the command line
and find out information on individual plugins, including the expected
function signature.
The text was updated successfully, but these errors were encountered: