Improvements for gendoc
command #578
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()
|
||||||
acid-ant marked this conversation as resolved
Outdated
|
|||||||
o.ManHeader = &doc.GenManHeader{
|
o.ManHeader = &doc.GenManHeader{
|
||||||
Section: "1",
|
Section: "1",
|
||||||
Source: "FrostFS",
|
Source: "FrostFS",
|
||||||
|
Date: &now,
|
||||||
acid-ant marked this conversation as resolved
Outdated
acid-ant
commented
TypeFlag -> ExtensionFlag TypeFlag -> ExtensionFlag
fyrchik
commented
fixed fixed
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue
TypeFlag -> DepthFlag
fixed