only show options with lopt

This commit is contained in:
Christian Goll
2022-09-19 18:57:56 +02:00
parent c3416de3cb
commit a4fbe428e2
2 changed files with 20 additions and 12 deletions

View File

@@ -45,7 +45,7 @@ func CobraRunE(cmd *cobra.Command, args []string) error {
}
defer os.Remove(file.Name())
nodeConf := node.NewConf()
yamlTemplate := nodeConf.UnmarshalConf([]string{"tagsdel"})
yamlTemplate := nodeConf.UnmarshalConf([]string{"tagsdel", "default", "profiles"})
for {
_ = file.Truncate(0)
_, _ = file.Seek(0, 0)