MCPcopy
hub / github.com/helm/helm / List

Method List

pkg/action/dependency.go:58–73  ·  view source on GitHub ↗

List executes 'helm dependency list'.

(chartpath string, out io.Writer)

Source from the content-addressed store, hash-verified

56
57// List executes 'helm dependency list'.
58func (d *Dependency) List(chartpath string, out io.Writer) error {
59 c, err := loader.Load(chartpath)
60 if err != nil {
61 return err
62 }
63
64 if c.Metadata.Dependencies == nil {
65 fmt.Fprintf(out, "WARNING: no dependencies at %s\n", filepath.Join(chartpath, "charts"))
66 return nil
67 }
68
69 d.printDependencies(chartpath, out, c)
70 fmt.Fprintln(out)
71 d.printMissing(chartpath, out, c.Metadata.Dependencies)
72 return nil
73}
74
75// dependencyStatus returns a string describing the status of a dependency viz a viz the parent chart.
76func (d *Dependency) dependencyStatus(chartpath string, dep *chart.Dependency, parent *chart.Chart) string {

Callers 1

newDependencyListCmdFunction · 0.95

Calls 3

printDependenciesMethod · 0.95
printMissingMethod · 0.95
LoadFunction · 0.92

Tested by

no test coverage detected