-
Notifications
You must be signed in to change notification settings - Fork 593
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
Fix up gke-deploy docs. #519
Fix up gke-deploy docs. #519
Conversation
@imjasonh Docs were messed up due to an auto-formatter. |
Are these tables generated by cobra? If not, can they be? It'd be nice to have one canonical documentation in Go which gets generated into Markdown. |
Is there a cobra command that generates tables? |
Not tables, as far as I know, but it can generate Markdown files at least. See |
I copied the structure in the example you gave. For some reason, I can't use the github.com/spf13/cobra/doc library as long as the vendor dir exists. ^ This problem also prevents me from being able to docker build |
|
Here's the problem I'm facing: If I add
|
Found a mention of the problem here: spf13/cobra#805 I'm not sure yet how to fix this in the vendor |
Looks to me that github.com/spf13/cobra/doc is importing an older version of github.com/cpuguy83/go-md2man when run with go get/go vendor. Looking into this. |
Thanks for looking into this. In the meantime if you just want to get this PR merged and work on generating docs in a future change that's fine too, just let me know. |
I believe this is the issue:
The latest release of However, running without vendor works because |
^ It seems that |
^ I think the problem may be in the If I have this in a separate:
and run
|
After many attempts, I've still not been able to find the root of the solution. One clue is that the I've decided to punt adding the help tool for now. I've added the generated docs to this PR. I've also copied over the work from @dorbin's PR to preemptively deal with merge conflicts. |
* Fix tables in docs. * Add cobra-generated docs and update README.md. * Fix go.mod.
No description provided.