README.md: Add info about xk6-registry import #172

Merged
fyrchik merged 2 commits from elebedeva/xk6-frostfs:fix/doc-registry-importer into master 2024-11-02 14:21:47 +00:00
2 changed files with 20 additions and 1 deletions

View file

@ -186,6 +186,25 @@ Flags:
-v, --version version for registry-exporter
```
## Import pregen into registry db
You can import pregenerated json files into registry bolt db. Use `frostfs-xk6-registry import`. Usage examples are in help:
```shell
$ ./bin/frostfs-xk6-registry import -h
Import objects into registry from pregenerated files
Usage:
xk6-registry import [flags]
Examples:
xk6-registry import registry.bolt preset.json
xk6-registry import registry.bolt preset.json another_preset.json
Flags:
-h, --help help for import
```
# License
- [GNU General Public License v3.0](LICENSE)

View file

@ -11,7 +11,7 @@ var Cmd = &cobra.Command{
Short: "Import objects into registry",
Long: "Import objects into registry from pregenerated files",
Example: `xk6-registry import registry.bolt preset.json
xk6-registry import --status created registry.bolt preset.json another_preset.json`,
fyrchik marked this conversation as resolved
Review

What is the default status we use then?

What is the default status we use then?
Review

Objects are put in registry with status created by default.

Objects are put in registry with status `created` by default.
xk6-registry import registry.bolt preset.json another_preset.json`,
RunE: runCmd,
Args: cobra.MinimumNArgs(2),
}