Skip to content

Commit

Permalink
Make is easier to see multi-get
Browse files Browse the repository at this point in the history
  • Loading branch information
kkraune committed Jan 29, 2025
1 parent 108bdbb commit 31121ae
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions client/go/internal/cli/cmd/document.go
Original file line number Diff line number Diff line change
Expand Up @@ -285,12 +285,13 @@ func newDocumentGetCmd(cli *CLI) *cobra.Command {
headers []string
)
cmd := &cobra.Command{
Use: "get id",
Short: "Gets documents",
Use: "get id(s)",
Short: "Gets one or more documents",
Args: cobra.MinimumNArgs(1),
DisableAutoGenTag: true,
SilenceUsage: true,
Example: `$ vespa document get id:mynamespace:music::a-head-full-of-dreams...`,
Example: `$ vespa document get id:mynamespace:music::song-1
$ vespa document get id:mynamespace:music::song-1 id:mynamespace:music::song-2`,
RunE: func(cmd *cobra.Command, args []string) error {
waiter := cli.waiter(time.Duration(waitSecs)*time.Second, cmd)
return readDocuments(args, timeoutSecs, waiter, printCurl, cli, fieldSet, headers)
Expand Down

0 comments on commit 31121ae

Please sign in to comment.