|
|
@ -65,6 +65,13 @@ func newGetValuesCmd(cfg *action.Configuration, out io.Writer) *cobra.Command {
|
|
|
|
|
|
|
|
|
|
|
|
f := cmd.Flags()
|
|
|
|
f := cmd.Flags()
|
|
|
|
f.IntVar(&client.Version, "revision", 0, "get the named release with revision")
|
|
|
|
f.IntVar(&client.Version, "revision", 0, "get the named release with revision")
|
|
|
|
|
|
|
|
flag := f.Lookup("revision")
|
|
|
|
|
|
|
|
completion.RegisterFlagCompletionFunc(flag, func(cmd *cobra.Command, args []string, toComplete string) ([]string, completion.BashCompDirective) {
|
|
|
|
|
|
|
|
if len(args) == 1 {
|
|
|
|
|
|
|
|
return compListRevisions(cfg, args[0])
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil, completion.BashCompDirectiveNoFileComp
|
|
|
|
|
|
|
|
})
|
|
|
|
f.BoolVarP(&client.AllValues, "all", "a", false, "dump all (computed) values")
|
|
|
|
f.BoolVarP(&client.AllValues, "all", "a", false, "dump all (computed) values")
|
|
|
|
bindOutputFlag(cmd, &outfmt)
|
|
|
|
bindOutputFlag(cmd, &outfmt)
|
|
|
|
|
|
|
|
|
|
|
|