New 🌊 wave for @helm

Commit 5da90529

5da905294075Merged

Svyatoslav Dumchenko <[email protected]> · 5 years ago · 13 files · +1 added · ~12 modified

Description

move existing feature flags to separate package

Details

Commit
5da905294075
Parent
9c550604511c

cmd/helmwave/flags.gomodifiedView file

@@ -1,6 +1,7 @@
11 package main
22
33 import (
4+ "github.com/helmwave/helmwave/pkg/feature"
45 "github.com/helmwave/helmwave/pkg/helmwave"
56 "github.com/urfave/cli/v2"
67 "time"
@@ -42,7 +43,7 @@
4243 Usage: "It allows you call `helm install` in parallel mode ",
4344 Value: true,
4445 EnvVars: []string{"HELMWAVE_PARALLEL"},
45- Destination: &app.Parallel,
46+ Destination: &feature.Parallel,
4647 },
4748 //&cli.BoolFlag{
4849 // Name: "force",
@@ -82,7 +83,7 @@
8283 Usage: "Enable/Disable kubedog",
8384 Value: false,
8485 EnvVars: []string{"HELMWAVE_KUBEDOG", "HELMWAVE_KUBEDOG_ENABLED"},
85- Destination: &app.Kubedog.Enabled,
86+ Destination: &feature.Kubedog,
8687 },
8788 &cli.DurationFlag{
8889 Name: "kubedog-status-interval",
@@ -117,7 +118,7 @@
117118 Usage: "Enable dependencies",
118119 Value: false,
119120 EnvVars: []string{"HELMWAVE_ENABLE_DEPENDENCIES"},
120- Destination: &app.Yml.EnableDependencies,
121+ Destination: &feature.Dependencies,
121122 },
122123 }
123124 }