diff --git a/cmd/load.go b/cmd/load.go index cffa392..9710b44 100644 --- a/cmd/load.go +++ b/cmd/load.go @@ -23,30 +23,34 @@ var lp = struct { }{} var loadCmd = &cobra.Command{ - Use: "load", - Short: "Loads files from git repository into target", - PersistentPreRunE: cmd.ExpandArgs, + Use: "load", + Short: "Loads files from git repository into target", + DisableFlagParsing: true, + PersistentPreRunE: cmd.ExpandArgs, } var loadConfigmapCmd = &cobra.Command{ - Use: "configmap", - Short: "Loads files from git repository into ConfigMap", + Use: "configmap", + Short: "Loads files from git repository into ConfigMap", + DisableFlagParsing: true, RunE: func(c *cobra.Command, args []string) error { return executeLoad(cmd.ConfigMap) }, } var loadSecretCmd = &cobra.Command{ - Use: "secret", - Short: "Loads files from git repository into Secret", + Use: "secret", + Short: "Loads files from git repository into Secret", + DisableFlagParsing: true, RunE: func(c *cobra.Command, args []string) error { return executeLoad(cmd.Secret) }, } var loadFolderCmd = &cobra.Command{ - Use: "folder", - Short: "Loads files from git repository into Folder", + Use: "folder", + Short: "Loads files from git repository into Folder", + DisableFlagParsing: true, RunE: func(c *cobra.Command, args []string) error { return executeLoad(cmd.Folder) }, diff --git a/cmd/watch.go b/cmd/watch.go index 7831f6b..8066eb1 100644 --- a/cmd/watch.go +++ b/cmd/watch.go @@ -37,6 +37,7 @@ var watchCmd = &cobra.Command{ var watchConfigmapCmd = &cobra.Command{ Use: "configmap", Short: "Runs watcher that periodically check the provided repository and updates K8s ConfigMap accordingly", + DisableFlagParsing: true, RunE: func(c *cobra.Command, args []string) error { return executeWatch(cmd.ConfigMap) }, @@ -45,6 +46,7 @@ var watchConfigmapCmd = &cobra.Command{ var watchSecretCmd = &cobra.Command{ Use: "secret", Short: "Runs watcher that periodically check the provided repository and updates K8s Secret accordingly", + DisableFlagParsing: true, RunE: func(c *cobra.Command, args []string) error { return executeWatch(cmd.Secret) }, @@ -53,6 +55,7 @@ var watchSecretCmd = &cobra.Command{ var watchFolderCmd = &cobra.Command{ Use: "folder", Short: "Runs watcher that periodically check the provided repository and updates target folder accordingly", + DisableFlagParsing: true, RunE: func(c *cobra.Command, args []string) error { return executeWatch(cmd.Folder) },