MCPcopy
hub / github.com/roboll/helmfile / execStdIn

Method execStdIn

pkg/helmexec/exec.go:509–521  ·  view source on GitHub ↗
(args []string, env map[string]string, stdin io.Reader)

Source from the content-addressed store, hash-verified

507}
508
509func (helm *execer) execStdIn(args []string, env map[string]string, stdin io.Reader) ([]byte, error) {
510 cmdargs := args
511 if len(helm.extra) > 0 {
512 cmdargs = append(cmdargs, helm.extra...)
513 }
514 if helm.kubeContext != "" {
515 cmdargs = append([]string{"--kube-context", helm.kubeContext}, cmdargs...)
516 }
517 cmd := fmt.Sprintf("exec: %s %s", helm.helmBinary, strings.Join(cmdargs, " "))
518 helm.logger.Debug(cmd)
519 outBytes, err := helm.runner.ExecuteStdIn(helm.helmBinary, cmdargs, env, stdin)
520 return outBytes, err
521}
522
523func (helm *execer) azcli(name string) ([]byte, error) {
524 cmdargs := append(strings.Split("acr helm repo add --name", " "), name)

Callers 1

RegistryLoginMethod · 0.95

Calls 1

ExecuteStdInMethod · 0.65

Tested by

no test coverage detected