Skip to content

Commit

Permalink
Don't include timestamp in generated manpages (#405)
Browse files Browse the repository at this point in the history
This makes manpage generation reproducible.
  • Loading branch information
guilherme-puida authored May 2, 2024
1 parent 977f11c commit 6872c2e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/command/man.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ import (
)

func manCommand(root *cobra.Command) *cobra.Command {
// Do not include timestamp in generated man pages.
// See https://github.com/spf13/cobra/issues/142
root.DisableAutoGenTag = true

cmd := &cobra.Command{
Use: "man -o <dir>",
Short: "Generate manual pages for all dasel subcommands",
Expand Down

0 comments on commit 6872c2e

Please sign in to comment.