frostfs-node/cmd
Evgenii Stratonikov 39e3339df6
Some checks failed
Tests and linters / Run gofumpt (pull_request) Successful in 2m37s
DCO action / DCO (pull_request) Failing after 2m53s
Build / Build Components (pull_request) Successful in 4m9s
Tests and linters / Staticcheck (pull_request) Successful in 4m15s
Pre-commit hooks / Pre-commit (pull_request) Successful in 5m0s
Vulncheck / Vulncheck (pull_request) Successful in 4m54s
Tests and linters / Lint (pull_request) Successful in 5m7s
Tests and linters / gopls check (pull_request) Successful in 6m27s
Tests and linters / Tests (pull_request) Successful in 8m21s
Tests and linters / Tests with -race (pull_request) Successful in 8m28s
adm: Allow to use --local-dump everywhere --rpc-endpoint is present
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>
2024-11-20 14:31:47 +03:00
..
frostfs-adm adm: Allow to use --local-dump everywhere --rpc-endpoint is present 2024-11-20 14:31:47 +03:00
frostfs-cli [#1501] cli: Refactor bearer subcommand 2024-11-20 07:58:32 +00:00
frostfs-ir [#1437] node: Fix contextcheck linter 2024-11-13 10:36:10 +03:00
frostfs-lens [#1437] node: Fix contextcheck linter 2024-11-13 10:36:10 +03:00
frostfs-node [#1496] node/control: Await until SetNetmapStatus() persists 2024-11-15 16:36:07 +03:00
internal/common [#1501] adm: Refactor APE-chains managing subcommands 2024-11-20 07:58:32 +00:00