You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
rename bodyutil package to argsio, rename functions in package to be a bit clearer, clean up flags.go to leverage argsio rather that duplicating a bunch of logic for reading out of flag args, add unit tests for flags_test.go
cmd.Flags().StringVarP(&options.indexName, "index-name", "n", "", "name of index to upsert into")
49
55
cmd.Flags().StringVar(&options.namespace, "namespace", "__default__", "namespace to upsert into")
50
-
cmd.Flags().StringVar(&options.body, "body", "", "request body JSON (inline, @path.json, or @- for stdin; only one argument may use stdin; max size: see PC_CLI_MAX_JSON_BYTES)")
51
-
cmd.Flags().IntVarP(&options.batchSize, "batch-size", "b", 1000, "size of batches to upsert (default: 1000)")
56
+
cmd.Flags().StringVar(&options.body, "body", "", "request body JSON or JSONL (inline, @path.json[l], or @- for stdin; only one argument may use stdin; max size: see PC_CLI_MAX_JSON_BYTES)")
57
+
cmd.Flags().IntVarP(&options.batchSize, "batch-size", "b", 500, "size of batches to upsert (default: 500)")
52
58
cmd.Flags().BoolVar(&options.json, "json", false, "output as JSON")
0 commit comments