adm: Add command morph netmap-candidates
#15
Labels
No labels
P0
P1
P2
P3
badger
frostfs-adm
frostfs-cli
frostfs-ir
frostfs-lens
frostfs-node
good first issue
triage
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-node#15
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/1889-morph-nm-candidates"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Close #1889
Signed-off-by: Anton Nikiforov an.nikiforov@yadro.com
lets try not to use
RunE
according to #623?why do we need it?
that context is usually used for complex transactions. for RO purposes it looks too heavy, see
morph dump-config
as an examplewhy have you decided to init flags in a separate
init
and not like it is already done here?could you, please, make that move in a separate commit?
In this case I need to add in
adm
dependency oncli
or duplicate code. Is It ok?The idea was to reduce amount of lines here, also we are using the same approach in
cli
.Refactored.
Removed.
Refactored.
Updated.
Is it possible to have
res == nil
anderr == nil
at the same time?@ -323,4 +333,7 @@ func init() {
depositNotaryCmd.Flags().String(walletAccountFlag, "", "Wallet account address")
depositNotaryCmd.Flags().String(refillGasAmountFlag, "", "Amount of GAS to deposit")
Why not short by default and
--verbose
for everything?We do not want to have
pkg/core/netmap
or (any otherpkg
to depend oncmd
package).Can we use
cmd/internal/common
instead? Other ideas? @carpawellRemoved redundant check.
@ -323,4 +333,7 @@ func init() {
depositNotaryCmd.Flags().String(walletAccountFlag, "", "Wallet account address")
depositNotaryCmd.Flags().String(refillGasAmountFlag, "", "Amount of GAS to deposit")
Good idea, replaced with
--verbose
.Moved from
pkg
tocmd/internal/common
Can we factor out common flags in a separate commit? And add
netmap-candidates
in the next one.@ -10,6 +10,7 @@ import (
"github.com/TrueCloudLab/frostfs-node/cmd/frostfs-cli/internal/common"
"github.com/TrueCloudLab/frostfs-node/cmd/frostfs-cli/internal/commonflags"
commonCmd "github.com/TrueCloudLab/frostfs-node/cmd/internal/common"
There is a typo in the commit message.
Done.
@ -10,6 +10,7 @@ import (
"github.com/TrueCloudLab/frostfs-node/cmd/frostfs-cli/internal/common"
"github.com/TrueCloudLab/frostfs-node/cmd/frostfs-cli/internal/commonflags"
commonCmd "github.com/TrueCloudLab/frostfs-node/cmd/internal/common"
Thanks, fixed.