Use stdout as command output

Signed-off-by: Denis Kirillov <d.kirillov@yadro.com>
This commit is contained in:
Denis Kirillov 2024-09-03 15:39:03 +03:00
parent 9cb198d411
commit f9ac7b7f53

View file

@ -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)