MCPcopy
hub / github.com/helm/helm / bindPostRenderFlag

Function bindPostRenderFlag

pkg/cmd/flags.go:169–173  ·  view source on GitHub ↗

TODO there is probably a better way to pass cobra settings than as a param

(cmd *cobra.Command, varRef *postrenderer.PostRenderer, settings *cli.EnvSettings)

Source from the content-addressed store, hash-verified

167
168// TODO there is probably a better way to pass cobra settings than as a param
169func bindPostRenderFlag(cmd *cobra.Command, varRef *postrenderer.PostRenderer, settings *cli.EnvSettings) {
170 p := &postRendererOptions{varRef, "", []string{}, settings}
171 cmd.Flags().Var(&postRendererString{p}, postRenderFlag, "the name of a postrenderer type plugin to be used for post rendering. If it exists, the plugin will be used")
172 cmd.Flags().Var(&postRendererArgsSlice{p}, postRenderArgsFlag, "an argument to the post-renderer (can specify multiple)")
173}
174
175type postRendererOptions struct {
176 renderer *postrenderer.PostRenderer

Callers 3

newInstallCmdFunction · 0.85
newUpgradeCmdFunction · 0.85
newTemplateCmdFunction · 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…