use comments of variables for help
This commit is contained in:
committed by
Jonathon Anderson
parent
facde98fb5
commit
68758e3e45
@@ -47,7 +47,7 @@ func CobraRunE(cmd *cobra.Command, args []string) error {
|
||||
defer os.Remove(tempFile.Name())
|
||||
|
||||
if !NoHeader {
|
||||
yamlTemplate := node.UnmarshalConf(node.Node{}, nil)
|
||||
yamlTemplate := node.ConfToYaml(node.Node{}, nil)
|
||||
if _, err := tempFile.WriteString("#nodename:\n# " + strings.Join(yamlTemplate, "\n# ") + "\n"); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user