Selection des charts
This commit is contained in:
@@ -5,7 +5,6 @@
|
||||
package cmd
|
||||
|
||||
import (
|
||||
"strings"
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
log "oc-deploy/log_wrapper"
|
||||
@@ -29,7 +28,7 @@ func Execute() {
|
||||
Long: `deploy Charts`,
|
||||
Args: cobra.MaximumNArgs(0),
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
InstallCmd(context, version, strings.Split(modules, ","))
|
||||
InstallCmd(context, version, modules)
|
||||
},
|
||||
Example: "oc-deploy install --version 1.0 --context ex1",
|
||||
}
|
||||
@@ -58,7 +57,7 @@ func Execute() {
|
||||
|
||||
cmdInstall.Flags().StringVarP(&context, "context", "p", "opencloud", "Nom du projet")
|
||||
cmdInstall.Flags().StringVarP(&version, "version", "v", "latest", "Version")
|
||||
cmdInstall.Flags().StringArrayVarP(&modules, "modules", "m", "", "modules, ...")
|
||||
cmdInstall.Flags().StringArrayVarP(&modules, "modules", "m", []string{}, "modules, ...")
|
||||
|
||||
cmdUninstall.Flags().StringVarP(&context, "context", "p", "opencloud", "Nom du projet")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user