Skip to content

Commit

Permalink
fix(tuple): model id is only accepted on import and write (#126)
Browse files Browse the repository at this point in the history
  • Loading branch information
rhamzeh committed Aug 9, 2023
2 parents cd14c20 + 3db8774 commit e038b31
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions cmd/tuple/import.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ var importCmd = &cobra.Command{
}

func init() {
importCmd.Flags().String("model-id", "", "Model ID")
importCmd.Flags().String("file", "", "Tuples file")
importCmd.Flags().Int("max-tuples-per-write", MaxTuplesPerWrite, "Max tuples per write chunk.")
importCmd.Flags().Int("max-parallel-requests", MaxParallelRequests, "Max number of requests to issue to the server in parallel.") //nolint:lll
Expand Down
1 change: 0 additions & 1 deletion cmd/tuple/tuple.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ func init() {
TupleCmd.AddCommand(importCmd)

TupleCmd.PersistentFlags().String("store-id", "", "Store ID")
TupleCmd.PersistentFlags().String("model-id", "", "Model ID")
err := TupleCmd.MarkPersistentFlagRequired("store-id")
if err != nil { //nolint:wsl
fmt.Print(err)
Expand Down
1 change: 1 addition & 0 deletions cmd/tuple/write.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,5 @@ var writeCmd = &cobra.Command{
}

func init() {
writeCmd.Flags().String("model-id", "", "Model ID")
}

0 comments on commit e038b31

Please sign in to comment.