WIP: cli, adm: Improve add rule commands #990

Closed
aarifullin wants to merge 3 commits from aarifullin/frostfs-node:feat/cli_parse_json_any into master

3 commits

Author SHA1 Message Date
fa8b98fb64 [#989] util: Introduce any and all statements for ape rule parsing
All checks were successful
DCO action / DCO (pull_request) Successful in 2m13s
Build / Build Components (1.20) (pull_request) Successful in 3m26s
Vulncheck / Vulncheck (pull_request) Successful in 3m21s
Build / Build Components (1.21) (pull_request) Successful in 4m6s
Tests and linters / Staticcheck (pull_request) Successful in 4m35s
Tests and linters / Lint (pull_request) Successful in 5m45s
Tests and linters / Tests (1.20) (pull_request) Successful in 6m53s
Tests and linters / Tests (1.21) (pull_request) Successful in 7m17s
Tests and linters / Tests with -race (pull_request) Successful in 7m40s
Signed-off-by: Airat Arifullin <a.arifullin@yadro.com>
2024-02-16 13:13:54 +03:00
8a4b219bc7 [#989] adm: Read and parse chains from file
* Slightly fix the approach to read encoded chain from file
  in frostfs-adm.

Signed-off-by: Airat Arifullin <a.arifullin@yadro.com>
2024-02-16 12:59:48 +03:00
2ebb4d614e [#989] cli: Read and parse chains from file
* Introduce path flag to make add-rule command read and parse
  chain from file. File is binary/JSON-encoded chain.

Signed-off-by: Airat Arifullin <a.arifullin@yadro.com>
2024-02-16 12:39:53 +03:00