Added selector option to list command

Signed-off-by: Dmitry Chepurovskiy <dm3ch@dm3ch.net>
pull/8532/head
Dmitry Chepurovskiy 4 years ago
parent 579c01fad0
commit edc7d8ea32
No known key found for this signature in database
GPG Key ID: A9B6ED8F3D834514

@ -126,6 +126,7 @@ func newListCmd(cfg *action.Configuration, out io.Writer) *cobra.Command {
f.IntVarP(&client.Limit, "max", "m", 256, "maximum number of releases to fetch")
f.IntVar(&client.Offset, "offset", 0, "next release name in the list, used to offset from start value")
f.StringVarP(&client.Filter, "filter", "f", "", "a regular expression (Perl compatible). Any releases that match the expression will be included in the results")
f.StringVarP(&client.Selector, "selector", "l", "", "Selector (label query) to filter on, supports '=', '==', and '!='.(e.g. -l key1=value1,key2=value2)")
bindOutputFlag(cmd, &outfmt)
return cmd

@ -126,6 +126,7 @@ type List struct {
Deployed bool
Failed bool
Pending bool
Selector string
}
// NewList constructs a new *List

Loading…
Cancel
Save