Skip to content

Commit

Permalink
Remove extraneous function
Browse files Browse the repository at this point in the history
Signed-off-by: Alan Cha <[email protected]>
  • Loading branch information
Alan-Cha committed Sep 6, 2023
1 parent 2640eac commit f6d78fd
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ import (
"github.com/iter8-tools/iter8/base/log"
"github.com/sirupsen/logrus"
"github.com/spf13/cobra"
"github.com/spf13/pflag"
"helm.sh/helm/v3/pkg/cli"
"helm.sh/helm/v3/pkg/cli/values"
)

var (
Expand Down Expand Up @@ -47,16 +45,6 @@ func Execute() {
cobra.CheckErr(rootCmd.Execute())
}

// addValueFlags adds flags that enable supplying values to the given command
// Credit: the following function is from Helm. Please see:
// https://github.com/helm/helm/blob/main/cmd/helm/flags.go
func addValueFlags(f *pflag.FlagSet, v *values.Options) {
f.StringSliceVarP(&v.ValueFiles, "values", "f", []string{}, "specify values in a YAML file or a URL (can specify multiple)")
f.StringArrayVar(&v.Values, "set", []string{}, "set values on the command line (can specify multiple or separate values with commas: key1=val1,key2=val2)")
f.StringArrayVar(&v.StringValues, "set-string", []string{}, "set STRING values on the command line (can specify multiple or separate values with commas: key1=val1,key2=val2)")
f.StringArrayVar(&v.FileValues, "set-file", []string{}, "set values from respective files specified via the command line (can specify multiple or separate values with commas: key1=path1,key2=path2)")
}

// initialize Iter8 CLI root command and add all subcommands
func init() {
// disable completion command for now
Expand Down

0 comments on commit f6d78fd

Please sign in to comment.