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

+1 -1
View File
@@ -167,7 +167,7 @@ require (
github.com/hashicorp/go-kms-wrapping/plugin/v2 v2.0.5 // indirect
github.com/hashicorp/go-plugin v1.5.2 // indirect
github.com/hashicorp/go-secure-stdlib/tlsutil v0.1.3 // indirect
github.com/hashicorp/mql v0.0.0-20230814234610-74af33a21d7f
github.com/hashicorp/mql v0.1.2
github.com/hashicorp/vault/sdk v0.3.0 // indirect
github.com/hashicorp/yamux v0.1.1 // indirect
github.com/huandu/xstrings v1.4.0 // indirect
+2 -2
View File
@@ -321,8 +321,8 @@ github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ
github.com/hashicorp/golang-lru v0.5.4/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4=
github.com/hashicorp/hcl v1.0.0 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4=
github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ=
github.com/hashicorp/mql v0.0.0-20230814234610-74af33a21d7f h1:hpvyk8Al2vfAtoqDOPJg9Z8WKMfpYcsDG85TEELbgmM=
github.com/hashicorp/mql v0.0.0-20230814234610-74af33a21d7f/go.mod h1:pSghNOmPNBD9/Bvx0M4EC2JB/mEVA6qlB9IKpNCiqOA=
github.com/hashicorp/mql v0.1.2 h1:Hw1FkOltYvAH13K2VTGVUZWUU1OU/vSo+b4uzRBUePs=
github.com/hashicorp/mql v0.1.2/go.mod h1:pSghNOmPNBD9/Bvx0M4EC2JB/mEVA6qlB9IKpNCiqOA=
github.com/hashicorp/nodeenrollment v0.2.9 h1:pFdMjd6VqDpqWtzr2+p//7DHKKPwxmbNoENCKCOYuvs=
github.com/hashicorp/nodeenrollment v0.2.9/go.mod h1:7lR/2H0cHO9ZsEQj7ixoaPYB7vNu5yP+8jyoCZtHeAY=
github.com/hashicorp/vault/api v1.10.0 h1:/US7sIjWN6Imp4o/Rj1Ce2Nr5bki/AXi9vAW3p2tOJQ=
+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",