update mql and clean search flags (#4030)

This commit is contained in:
Todd authored and Johan Brandhorst-Satzkorn committed 2024-01-05 07:43:20 -08:00
1 parent f6b9162953
commit 8af20349e7
3 files changed
+7 -13

No files matched your search

+4 -10
View File
@@ -37,9 +37,8 @@ var (
type SearchCommand struct {
*base.Command
flagNameStartsWith string
flagQuery string
flagResource string
flagQuery string
flagResource string
}
func (c *SearchCommand) Synopsis() string {
@@ -52,7 +51,7 @@ Usage: boundary search [options]
Search a boundary resource:
$ boundary search -resource targets
$ boundary search -resource targets -query 'name="foo"'
For a full list of examples, please see the documentation.
@@ -64,15 +63,10 @@ func (c *SearchCommand) Flags() *base.FlagSets {
set := c.FlagSet(base.FlagSetClient | base.FlagSetOutputFormat)
f := set.NewFlagSet("Command Options")
f.StringVar(&base.StringVar{
Name: "name-starts-with",
Target: &c.flagNameStartsWith,
Usage: `If set, specifies to search for a target that starts with`,
})
f.StringVar(&base.StringVar{
Name: "query",
Target: &c.flagQuery,
Usage: `If set, specifies the target search query`,
Usage: `If set, specifies the resource search query`,
})
f.StringVar(&base.StringVar{
Name: "resource",