Skip to content

Commit

Permalink
fix delete document usage
Browse files Browse the repository at this point in the history
  • Loading branch information
pmenglund committed Jan 16, 2024
1 parent 59f6c37 commit 082b5e3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cmd/document.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ package cmd

import (
"fmt"
"log/slog"

"github.com/spf13/cobra"
"log/slog"

"github.com/rockset/cli/completion"
"github.com/rockset/cli/config"
Expand All @@ -13,7 +13,7 @@ import (

func newDeleteDocumentsCmd() *cobra.Command {
cmd := cobra.Command{
Use: "documents",
Use: "documents [id] [id] ...",
Aliases: []string{"doc", "docs"},
Short: "delete documents",
Long: "delete documents from a collection",
Expand All @@ -28,6 +28,7 @@ func newDeleteDocumentsCmd() *cobra.Command {
return err
}

// TODO make it possible to read document IDs from stdin
res, err := rs.DeleteDocuments(ctx, ws, coll, args)
if err != nil {
return err
Expand Down

0 comments on commit 082b5e3

Please sign in to comment.