Evgenii Stratonikov
53c2a96258
Some checks failed
DCO action / DCO (pull_request) Failing after 2m44s
Vulncheck / Vulncheck (pull_request) Successful in 3m59s
Tests and linters / Tests (pull_request) Successful in 4m9s
Tests and linters / Run gofumpt (pull_request) Successful in 4m20s
Tests and linters / Staticcheck (pull_request) Successful in 4m35s
Tests and linters / gopls check (pull_request) Successful in 5m27s
Pre-commit hooks / Pre-commit (pull_request) Successful in 6m23s
Build / Build Components (pull_request) Successful in 6m28s
Tests and linters / Lint (pull_request) Successful in 7m0s
Tests and linters / Tests with -race (pull_request) Successful in 7m35s
Currently, we allow using `--local-dump` in `morph init` command. We also have this flag in other commands, but no `--protocol` which is also needed. And in new command we do not have the ability to use local dump at all. This commit makes it possible to work either with an RPC or with local-dump in every command. Refs #1035. Refs TrueCloudLab/frostfs-dev-env#42. Writing gopatch this time was really satisfying, btw: ``` @@ var flags expression @@ -flags.StringP(commonflags.EndpointFlag, ...) +commonflags.InitRPC(flags) @@ var flags expression @@ -_ = viper.BindPFlag(commonflags.EndpointFlag, flags.Lookup(...)) +commonflags.BindRPC(flags) ``` Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com> |
||
---|---|---|
.. | ||
frostfs-adm | ||
frostfs-cli | ||
frostfs-ir | ||
frostfs-lens | ||
frostfs-node | ||
internal/common |