Pavel Karpy
3a7d7bdecd
[ #665 ] cli: Set non-zero exit codes in err
cases
...
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
2021-07-06 18:10:38 +03:00
Leonard Lyubich
61f48a2736
[ #651 ] cmd/cli: Replace netmap snapshot from netmap section to control
...
There is a need to have all `Control` service-related commands in `control`
section.
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2021-06-29 13:44:59 +03:00
Pavel Karpy
02ca1c4cc1
[ #624 ] cli: Do not print help on any failure
...
Change usage function to `Run`(does not return
err). Log errors with `cmd.PrintErrln`. Change
all `fmt.Print*` to `cmd.Print*`.
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
2021-06-23 10:08:40 +03:00
Leonard Lyubich
7cead1bc3a
[ #414 ] cmd/cli: Support IR health-check
...
Add `--ir` flag to `control healthcheck` to communicate with IR node.
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2021-06-15 15:21:52 +03:00
Evgenii Stratonikov
71b87155ef
[ #521 ] *: use stdlib errors
package
...
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
2021-05-19 16:42:54 +03:00
Evgenii Stratonikov
60d74bce67
[ #466 ] cli: support NEP-2 and NEP-6 key formats
...
NEP-2 is contains WIF encrypted with password.
NEP-6 is format used for neo-go wallets.
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
2021-04-23 10:11:47 +03:00
Leonard Lyubich
6204ca8308
[ #425 ] cli: Support latest changes from API library
...
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2021-03-17 15:00:37 +03:00
Leonard Lyubich
645bef9de9
[ #401 ] cli: Add command to drop object from the node's local storage
...
Add `drop-objects` sub-command to `control` command that drops objects from
the node via `ControlService.DropObjects` API. Address list argument is
passed in NeoFS API string format of the object address.
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2021-02-24 13:07:53 +03:00
Leonard Lyubich
0690a54299
[ #315 ] cmd/cli: Add set-status command to control section
...
Add set-status command that uses SetNetmapStatus rpc of Control API.
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2021-01-15 17:46:12 +03:00
Leonard Lyubich
b418aa6130
[ #312 ] cmd/cli: Add health status to healthcheck command output
...
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2021-01-15 16:52:08 +03:00
Leonard Lyubich
83d4420a30
[ #313 ] control: Rename HealthStatus enum to NetmapStatus
...
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2021-01-15 16:52:08 +03:00
Leonard Lyubich
cd4055d0b7
[ #168 ] cmd/cli: Add snapshot command to netmap section
...
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2021-01-15 16:11:50 +03:00
Leonard Lyubich
abd9952e46
[ #306 ] Rename Private service to Control service
...
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2021-01-14 12:13:49 +03:00