generated from TrueCloudLab/basic
Use stdout as command output
Signed-off-by: Denis Kirillov <d.kirillov@yadro.com>
This commit is contained in:
parent
9cb198d411
commit
f9ac7b7f53
1 changed files with 3 additions and 0 deletions
|
@ -52,6 +52,9 @@ const configFlag = "config"
|
|||
|
||||
func init() {
|
||||
cobra.EnableTraverseRunHooks = true
|
||||
|
||||
rootCmd.SetOut(os.Stdout)
|
||||
|
||||
rootCmd.PersistentFlags().StringP(configFlag, "c", "", "Path to config file")
|
||||
|
||||
cobra.AddTemplateFunc("runtimeVersion", runtime.Version)
|
||||
|
|
Loading…
Reference in a new issue