add full output siwtch to wwctl version

This commit is contained in:
mslacken
2022-04-29 10:07:15 +02:00
parent 2f836aaf87
commit 0fd8553bad
2 changed files with 20 additions and 16 deletions

View File

@@ -11,9 +11,11 @@ var (
Args: cobra.ExactArgs(0),
Aliases: []string{"vers"},
}
ListFull bool
)
func init() {
baseCmd.PersistentFlags().BoolVarP(&ListFull, "full", "f", false, "List all compiled in variables.")
}
// GetRootCommand returns the root cobra.Command for the application.