Improvements for gendoc command #578

Merged
fyrchik merged 5 commits from fyrchik/frostfs-node:fix-gendoc into master 2023-08-10 11:10:14 +00:00
Showing only changes of commit c800b64b12 - Show all commits

View file

@ -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,
}
}
}