-
Notifications
You must be signed in to change notification settings - Fork 190
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
yaml configuration for booting the each nodes #1684
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM except merge conflict
@kjeom - if ctx.IsSet(..) {
- cfg.Item = ctx.Bool(..)
- }
+ cfg.Item = ctx.Bool(..) - cfg.Item = ctx.IsSet(..)
+ cfg.Item = ctx.Bool(..) |
Sure and any issues? |
@kjeom Because it's difficult to review. If it's not changed I can just compare side-by-side. |
Ok, but I have left a comment for a case. |
altsrc.NewIntFlag(RPCWriteTimeoutFlag), | ||
altsrc.NewIntFlag(RPCIdleTimeoutFlag), | ||
altsrc.NewIntFlag(RPCExecutionTimeoutFlag), | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
UnsafeDebugDisableFlag
, RPCGlobalEVMTimeoutFlag
are missing from CommonRPCFlags
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM except for @blukat29's command and my minor comment. Let's handle this in another PR
Proposed changes
Migration from
urfave/cli.v1
tourfave/cli/v2
Flag.Aliases []string
Flag.EnvVars []string
&cli.BoolFlag{ ... }
&cli.Command{ ... }
ctx.GlobalString()
. There is onlyctx.String()
. Same goes for each flag types.Flag positioning
Load flags from a YAML file
ken --conf config.yaml
Refactor
cmd/utils/nodecmd/nodeflags.go
tocmd/utils/nodeflags.go
checkExclusive
toutils.CheckExclusive
Types of changes
Please put an x in the boxes related to your change.
Checklist
Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.
$ make test
)Related issues
Further comments
If this is a relatively large or complex change, kick off the discussion by explaining why you chose the solution you did and what alternatives you considered, etc...