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
@@ -94,7 +94,7 @@ var flagsMap = map[string][]string{
|
||||
|
||||
"delete": {"id"},
|
||||
|
||||
"list": {"host-catalog-id"},
|
||||
"list": {"host-catalog-id", "filter"},
|
||||
}
|
||||
|
||||
func (c *Command) Flags() *base.FlagSets {
|
||||
@@ -176,6 +176,10 @@ func (c *Command) Run(args []string) int {
|
||||
opts = append(opts, hostsets.WithDescription(c.FlagDescription))
|
||||
}
|
||||
|
||||
if c.FlagFilter != "" {
|
||||
opts = append(opts, hostsets.WithFilter(c.FlagFilter))
|
||||
}
|
||||
|
||||
var version uint32
|
||||
|
||||
switch c.Func {
|
||||
|
||||
@@ -157,6 +157,10 @@ func (c *StaticCommand) Run(args []string) int {
|
||||
opts = append(opts, hostsets.WithDescription(c.FlagDescription))
|
||||
}
|
||||
|
||||
if c.FlagFilter != "" {
|
||||
opts = append(opts, hostsets.WithFilter(c.FlagFilter))
|
||||
}
|
||||
|
||||
var version uint32
|
||||
|
||||
switch c.Func {
|
||||
|
||||
Reference in new issue
Block a user