-
Notifications
You must be signed in to change notification settings - Fork 324
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(cmd): snapshots command #2825
Conversation
Codecov Report
@@ Coverage Diff @@
## main #2825 +/- ##
==========================================
- Coverage 19.44% 19.44% -0.01%
==========================================
Files 143 143
Lines 17320 17323 +3
==========================================
Hits 3368 3368
- Misses 13633 13636 +3
Partials 319 319
|
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.
ty! this turned out to be easier than I thought. Can we backport this to v1.x?
rootCmd.AddCommand( | ||
snapshot.Cmd(NewAppServer), | ||
) |
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.
nit: I guess this could have just been appended to the AddCommand
function above
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.
true. TBH the contents of this function don't make sense to me. IDK why we add some commands in a block at the top and then add more later
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.
yeah it's all a bit messy but not too problematic
Closes #2824 ## Testing I verified the snapshots command was added ```shell $ ./build/celestia-appd snapshots Manage local snapshots Usage: celestia-appd snapshots [command] Available Commands: delete Delete a local snapshot dump Dump the snapshot as portable archive format export Export app state to snapshot store list List local snapshots load Load a snapshot archive file (.tar.gz) into snapshot store restore Restore app state from local snapshot Flags: -h, --help help for snapshots ``` (cherry picked from commit 7d28fc0)
This is an automatic backport of pull request #2825 done by [Mergify](https://mergify.com). --- <details> <summary>Mergify commands and options</summary> <br /> More conditions and actions can be found in the [documentation](https://docs.mergify.com/). You can also trigger Mergify actions by commenting on this pull request: - `@Mergifyio refresh` will re-evaluate the rules - `@Mergifyio rebase` will rebase this PR on its base branch - `@Mergifyio update` will merge the base branch into this PR - `@Mergifyio backport <destination>` will backport this PR on `<destination>` branch Additionally, on Mergify [dashboard](https://dashboard.mergify.com) you can: - look at your merge queues - generate the Mergify configuration with the config editor. Finally, you can contact us on https://mergify.com </details> Co-authored-by: Rootul P <[email protected]>
Closes #2824 ## Testing I verified the snapshots command was added ```shell $ ./build/celestia-appd snapshots Manage local snapshots Usage: celestia-appd snapshots [command] Available Commands: delete Delete a local snapshot dump Dump the snapshot as portable archive format export Export app state to snapshot store list List local snapshots load Load a snapshot archive file (.tar.gz) into snapshot store restore Restore app state from local snapshot Flags: -h, --help help for snapshots ```
Closes #2824
Testing
I verified the snapshots command was added