@ -87,7 +87,8 @@ This will produce an error if the chart cannot be loaded. It will emit a warning
if it cannot find a requirements . yaml .
if it cannot find a requirements . yaml .
`
`
func newDependencyCmd ( out io . Writer ) * cobra . Command {
// NewDependencyCmd returns cobra.Command to manage chart dependencies
func NewDependencyCmd ( out io . Writer ) * cobra . Command {
cmd := & cobra . Command {
cmd := & cobra . Command {
Use : "dependency update|build|list" ,
Use : "dependency update|build|list" ,
Aliases : [ ] string { "dep" , "dependencies" } ,
Aliases : [ ] string { "dep" , "dependencies" } ,
@ -95,9 +96,9 @@ func newDependencyCmd(out io.Writer) *cobra.Command {
Long : dependencyDesc ,
Long : dependencyDesc ,
}
}
cmd . AddCommand ( n ewDependencyListCmd( out ) )
cmd . AddCommand ( N ewDependencyListCmd( out ) )
cmd . AddCommand ( n ewDependencyUpdateCmd( out ) )
cmd . AddCommand ( N ewDependencyUpdateCmd( out ) )
cmd . AddCommand ( n ewDependencyBuildCmd( out ) )
cmd . AddCommand ( N ewDependencyBuildCmd( out ) )
return cmd
return cmd
}
}
@ -107,7 +108,8 @@ type dependencyListCmd struct {
chartpath string
chartpath string
}
}
func newDependencyListCmd ( out io . Writer ) * cobra . Command {
// NewDependencyListCmd returns cobra.Command to list the dependencies for the given chart
func NewDependencyListCmd ( out io . Writer ) * cobra . Command {
dlc := & dependencyListCmd { out : out }
dlc := & dependencyListCmd { out : out }
cmd := & cobra . Command {
cmd := & cobra . Command {