From dca31e88884905881b8254e15f2298a2476ecd7f Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Tue, 8 Aug 2023 18:12:42 +0300 Subject: [PATCH] [#578] gendoc: Add date to man pages ``` HISTORY 8-Aug-2023 Auto generated by spf13/cobra ``` Signed-off-by: Evgenii Stratonikov --- pkg/util/gendoc/gendoc.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/util/gendoc/gendoc.go b/pkg/util/gendoc/gendoc.go index 14361d8f6..16ebe9f98 100644 --- a/pkg/util/gendoc/gendoc.go +++ b/pkg/util/gendoc/gendoc.go @@ -7,6 +7,7 @@ import ( "path/filepath" "strings" "text/template" + "time" "github.com/spf13/cobra" "github.com/spf13/cobra/doc" @@ -31,9 +32,11 @@ type Options struct { func (o *Options) fillDefaults() { if o.ManHeader == nil { + now := time.Now() o.ManHeader = &doc.GenManHeader{ Section: "1", Source: "FrostFS", + Date: &now, } } }