forked from TrueCloudLab/frostfs-node
[#578] gendoc: Add date to man pages
``` HISTORY 8-Aug-2023 Auto generated by spf13/cobra ``` Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
parent
b02a1a34c1
commit
dca31e8888
1 changed files with 3 additions and 0 deletions
|
@ -7,6 +7,7 @@ import (
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"strings"
|
"strings"
|
||||||
"text/template"
|
"text/template"
|
||||||
|
"time"
|
||||||
|
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
"github.com/spf13/cobra/doc"
|
"github.com/spf13/cobra/doc"
|
||||||
|
@ -31,9 +32,11 @@ type Options struct {
|
||||||
|
|
||||||
func (o *Options) fillDefaults() {
|
func (o *Options) fillDefaults() {
|
||||||
if o.ManHeader == nil {
|
if o.ManHeader == nil {
|
||||||
|
now := time.Now()
|
||||||
o.ManHeader = &doc.GenManHeader{
|
o.ManHeader = &doc.GenManHeader{
|
||||||
Section: "1",
|
Section: "1",
|
||||||
Source: "FrostFS",
|
Source: "FrostFS",
|
||||||
|
Date: &now,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue