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:
1 parent
a4005b04f3
commit
519efa6dd1
26 files changed
+199
-20
No files matched your search
@@ -92,7 +92,7 @@ var flagsMap = map[string][]string{
|
||||
|
||||
"delete": {"id"},
|
||||
|
||||
"list": {"scope-id", "recursive"},
|
||||
"list": {"scope-id", "filter", "recursive"},
|
||||
}
|
||||
|
||||
func (c *Command) Flags() *base.FlagSets {
|
||||
@@ -163,6 +163,10 @@ func (c *Command) Run(args []string) int {
|
||||
opts = append(opts, authmethods.WithRecursive(true))
|
||||
}
|
||||
|
||||
if c.FlagFilter != "" {
|
||||
opts = append(opts, authmethods.WithFilter(c.FlagFilter))
|
||||
}
|
||||
|
||||
var version uint32
|
||||
|
||||
if ret := extraFlagsHandlingFunc(c, &opts); ret != 0 {
|
||||
|
||||
Reference in new issue
Block a user