Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Commit d04f13e

Browse files
authored
Merge pull request #87 from mnottale/cli-deploy-noexperimental
cli: move deploy out of experimental.
2 parents 5f2d82d + cc2e12f commit d04f13e

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

cmd/deploy.go

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,13 @@ var deployKubeConfig string
3737
var deployNamespace string
3838

3939
func init() {
40+
rootCmd.AddCommand(deployCmd)
41+
deployCmd.Flags().StringArrayVarP(&deploySettingsFiles, "settings-files", "f", []string{}, "Override settings files")
42+
deployCmd.Flags().StringArrayVarP(&deployEnv, "set", "s", []string{}, "Override settings values")
43+
deployCmd.Flags().StringVarP(&deployOrchestrator, "orchestrator", "o", "swarm", "Orchestrator to deploy on (swarm, kubernetes)")
44+
deployCmd.Flags().StringVarP(&deployKubeConfig, "kubeconfig", "k", "", "kubeconfig file to use")
45+
deployCmd.Flags().StringVarP(&deployNamespace, "namespace", "n", "default", "namespace to deploy into")
4046
if internal.Experimental == "on" {
41-
rootCmd.AddCommand(deployCmd)
4247
deployCmd.Flags().StringArrayVarP(&deployComposeFiles, "compose-files", "c", []string{}, "Override Compose files")
43-
deployCmd.Flags().StringArrayVarP(&deploySettingsFiles, "settings-files", "f", []string{}, "Override settings files")
44-
deployCmd.Flags().StringArrayVarP(&deployEnv, "set", "s", []string{}, "Override settings values")
45-
deployCmd.Flags().StringVarP(&deployOrchestrator, "orchestrator", "o", "swarm", "Orchestrator to deploy on (swarm, kubernetes)")
46-
deployCmd.Flags().StringVarP(&deployKubeConfig, "kubeconfig", "k", "", "kubeconfig file to use")
47-
deployCmd.Flags().StringVarP(&deployNamespace, "namespace", "n", "default", "namespace to deploy into")
48-
4948
}
5049
}

0 commit comments

Comments
 (0)