mirror of
https://github.com/helm/helm.git
synced 2026-08-07 00:21:27 +00:00
Added selector option to list command
Signed-off-by: Dmitry Chepurovskiy <dm3ch@dm3ch.net>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user