@@ -25,16 +25,23 @@ var RootCmd = &cobra.Command{
2525
2626func init () {
2727 // Add global flags
28- RootCmd .PersistentFlags ().StringVarP (& config .LogLevel , "log-level" , "l" , env .GetString ("LOG_LEVEL" , "debug" ), "Log level (debug, info, warn, error, fatal, panic)" )
29- RootCmd .PersistentFlags ().StringVar (& config .LogFormat , "log-format" , env .GetString ("LOG_FORMAT" , "json" ), "Log format (text, json)" )
30- RootCmd .PersistentFlags ().StringVar (& config .LogOutput , "log-output" , env .GetString ("LOG_OUTPUT" , "stdout" ), "Log output (stderr, stdout)" )
31-
32- RootCmd .PersistentFlags ().StringVarP (& config .KubeConfigPath , "kubeconfig" , "k" , "" , "Path to kubeconfig file" )
33-
34- RootCmd .PersistentFlags ().StringVarP (& config .ValuesFileName , "file-values" , "v" , "app-values.yaml" , "Path to values file" )
35- RootCmd .PersistentFlags ().StringVarP (& config .TargetDirectory , "file-target" , "t" , "." , "Path to application files" )
36-
37- RootCmd .PersistentFlags ().BoolVarP (& config .DryRun , "dry-run" , "d" , false , "dry-run enabled (true, false)" )
28+ RootCmd .PersistentFlags ().StringVarP (& config .LogLevel , "log-level" , "l" ,
29+ env .GetString ("LOG_LEVEL" , "debug" ), "Log level (debug, info, warn, error, fatal, panic)" )
30+ RootCmd .PersistentFlags ().StringVar (& config .LogFormat , "log-format" ,
31+ env .GetString ("LOG_FORMAT" , "json" ), "Log format (text, json)" )
32+ RootCmd .PersistentFlags ().StringVar (& config .LogOutput , "log-output" ,
33+ env .GetString ("LOG_OUTPUT" , "stdout" ), "Log output (stderr, stdout)" )
34+
35+ RootCmd .PersistentFlags ().StringVarP (& config .KubeConfigPath , "kubeconfig" , "k" ,
36+ "" , "Path to kubeconfig file" )
37+
38+ RootCmd .PersistentFlags ().StringVarP (& config .ValuesFileName , "file-values" , "v" ,
39+ "app-values.yaml" , "Path to values file" )
40+ RootCmd .PersistentFlags ().StringVarP (& config .TargetDirectory , "file-target" , "t" ,
41+ "." , "Path to application files" )
42+
43+ RootCmd .PersistentFlags ().BoolVarP (& config .DryRun , "dry-run" , "d" ,
44+ false , "dry-run enabled (true, false)" )
3845
3946 // Add subcommands
4047 RootCmd .AddCommand (commands .DiscoverCommand )
0 commit comments