-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Timestamp still shows in man documentation #741
Comments
Yep, second that. It's still in there. |
I want to add that it's also showing in the Markdown documentation, so likely a general issue of |
Guys, Is there a workarround for the same ? |
Not that I know off, sorry. :/ |
I used the "Source" member to overcome this.
|
@jharshman I did some investigation on this and seems that I was able to work around this by specifying something other than an empty string:
Would we expect setting |
- this addresses spf13#741
* Man pages wont have auto gen tag when option is disabled - this addresses #741 * Add documentation for doc generation and a changelog
This issue is being marked as stale due to a long period of inactivity |
@jharshman this can be closed as #1104 addressed this |
I thought that this issue was resolved with #142
But even after specifying in my root cmd:
DisableAutoGenTag: true,
I see this text in my man documentation:
Auto generated by spf13/cobra on 6-Sep-2018
markdown and ReST documentation don't have this text.
Am I doing something wrong?
Here is my code:
var rootCmd = &cobra.Command{
Use: "hello",
Short: "test",
Long: "my test",
DisableAutoGenTag: true,
}
func genManDocs() {
header := &doc.GenManHeader{
Title: "MINE",
Section: "3",
}
err := doc.GenManTree(rootCmd, header, "./")
}
The text was updated successfully, but these errors were encountered: