MCPcopy
hub / github.com/helm/helm / addValueOptionsFlags

Function addValueOptionsFlags

pkg/cmd/flags.go:50–57  ·  view source on GitHub ↗
(f *pflag.FlagSet, v *values.Options)

Source from the content-addressed store, hash-verified

48)
49
50func addValueOptionsFlags(f *pflag.FlagSet, v *values.Options) {
51 f.StringSliceVarP(&v.ValueFiles, "values", "f", []string{}, "specify values in a YAML file or a URL (can specify multiple)")
52 f.StringArrayVar(&v.Values, "set", []string{}, "set values on the command line (can specify multiple or separate values with commas: key1=val1,key2=val2)")
53 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)")
54 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)")
55 f.StringArrayVar(&v.JSONValues, "set-json", []string{}, "set JSON values on the command line (can specify multiple or separate values with commas: key1=jsonval1,key2=jsonval2 or using json format: {\"key1\": jsonval1, \"key2\": \"jsonval2\"})")
56 f.StringArrayVar(&v.LiteralValues, "set-literal", []string{}, "set a literal STRING value on the command line")
57}
58
59func AddWaitFlag(cmd *cobra.Command, wait *kube.WaitStrategy) {
60 cmd.Flags().Var(

Callers 3

newLintCmdFunction · 0.85
addInstallFlagsFunction · 0.85
newUpgradeCmdFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…