-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
feat: add --output-document flag to the export CLI command to allow writing genesis state to a file instead of STDOUT #13802
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.
Thanks for the PR! I think this feature should be additive.
Like we do for auth cli.
…riting genesis state to a file instead of STDOUT
@julienrbrt Hi, thanks for the review! Updated the PR accordingly. |
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.
tACK! Thank you!
forZeroHeight, _ := cmd.Flags().GetBool(FlagForZeroHeight) | ||
jailAllowedAddrs, _ := cmd.Flags().GetStringSlice(FlagJailAllowedAddrs) | ||
modulesToExport, _ := cmd.Flags().GetStringSlice(FlagModulesToExport) | ||
outputDocument, _ := cmd.Flags().GetString(FlagOutputDocument) |
Check warning
Code scanning / gosec
Returned error is not propagated up the stack.
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #13802 +/- ##
==========================================
- Coverage 56.71% 56.70% -0.02%
==========================================
Files 635 635
Lines 54547 54547
==========================================
- Hits 30938 30931 -7
- Misses 21105 21110 +5
- Partials 2504 2506 +2
|
Description
Closes: #13331
Add --output-document flag to the export CLI command to allow writing genesis state to a file.
Added a new flag
--output-ducument
forsimd export
.Author Checklist
All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.
I have...
!
to the type prefix if API or client breaking changeCHANGELOG.md
Reviewers Checklist
All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.
I have...
!
in the type prefix if API or client breaking change