@ -136,7 +136,8 @@ func newShowCmd(out io.Writer) *cobra.Command {
cmds := [ ] * cobra . Command { all , readmeSubCmd , valuesSubCmd , chartSubCmd }
cmds := [ ] * cobra . Command { all , readmeSubCmd , valuesSubCmd , chartSubCmd }
for _ , subCmd := range cmds {
for _ , subCmd := range cmds {
addShowFlags ( showCommand , subCmd , client )
addShowFlags ( subCmd , client )
showCommand . AddCommand ( subCmd )
// Register the completion function for each subcommand
// Register the completion function for each subcommand
completion . RegisterValidArgsFunc ( subCmd , validArgsFunc )
completion . RegisterValidArgsFunc ( subCmd , validArgsFunc )
@ -145,12 +146,11 @@ func newShowCmd(out io.Writer) *cobra.Command {
return showCommand
return showCommand
}
}
func addShowFlags ( s howCmd * cobra . Command , s ubCmd * cobra . Command , client * action . Show ) {
func addShowFlags ( s ubCmd * cobra . Command , client * action . Show ) {
f := subCmd . Flags ( )
f := subCmd . Flags ( )
f . BoolVar ( & client . Devel , "devel" , false , "use development versions, too. Equivalent to version '>0.0.0-0'. If --version is set, this is ignored" )
f . BoolVar ( & client . Devel , "devel" , false , "use development versions, too. Equivalent to version '>0.0.0-0'. If --version is set, this is ignored" )
addChartPathOptionsFlags ( f , & client . ChartPathOptions )
addChartPathOptionsFlags ( f , & client . ChartPathOptions )
showCmd . AddCommand ( subCmd )
}
}
func runShow ( args [ ] string , client * action . Show ) ( string , error ) {
func runShow ( args [ ] string , client * action . Show ) ( string , error ) {