Add -filter to CLI listing and website docs (#967)

* Add -filter to CLI listing.

This doesn't include docs/Changelog yet, that will come shortly.

* Add changelog

* Add website docs and fix a curl output bug
This commit is contained in:
Jeff Mitchell authored and GitHub committed 2021-03-01 09:23:17 -08:00
1 parent a4005b04f3
commit 519efa6dd1
26 files changed
+199 -20

No files matched your search

+5 -1
View File
@@ -183,7 +183,7 @@ var flags{{ camelCase .SubActionPrefix }}Map = map[string][]string{
"delete": {"id"},
{{ end }}
{{ if eq $action "list" }}
"list": { "{{ kebabCase $input.Container }}-id" {{ if (eq $input.Container "Scope") }}, "recursive"{{ end }} },
"list": { "{{ kebabCase $input.Container }}-id", "filter" {{ if (eq $input.Container "Scope") }}, "recursive"{{ end }} },
{{ end }}
{{ end }}
}
@@ -296,6 +296,10 @@ func (c *{{ camelCase .SubActionPrefix }}Command) Run(args []string) int {
}
{{ end }}
if c.FlagFilter != "" {
opts = append(opts, {{ .Pkg }}.WithFilter(c.FlagFilter))
}
{{ if .HasScopeName }}
switch c.FlagScopeName {
case "":