Charts locaux
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
package cmd
|
||||
|
||||
import (
|
||||
"strings"
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
log "oc-deploy/log_wrapper"
|
||||
@@ -13,6 +14,7 @@ import (
|
||||
var (
|
||||
context string
|
||||
version string
|
||||
modules []string
|
||||
)
|
||||
|
||||
func Execute() {
|
||||
@@ -27,7 +29,7 @@ func Execute() {
|
||||
Long: `deploy Charts`,
|
||||
Args: cobra.MaximumNArgs(0),
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
InstallCmd(context, version)
|
||||
InstallCmd(context, version, strings.Split(modules, ","))
|
||||
},
|
||||
Example: "oc-deploy install --version 1.0 --context ex1",
|
||||
}
|
||||
@@ -56,6 +58,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, ...")
|
||||
|
||||
cmdUninstall.Flags().StringVarP(&context, "context", "p", "opencloud", "Nom du projet")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user