You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wanted to wrap mithirl-client in a separate app and provide the option for the users to just download the lastest snapshot. To do that I would had to parse the snapshot list output which contains a list of snapshots and then take the latest one to do a snapshot download in the background. Would it be possible to provide a separate command to just download the latest known snapshot for the specified network or alternatively some other type of output like json? It is hard to get rid of all unwanted characters in the output and separate command would make this a breeze.
To do
Add a latest value in snapshot list command which downloads the latest snapshot
Add a latest value in msd list command which downloads the latest snapshot
Update documentations
The text was updated successfully, but these errors were encountered:
Hi @v0d1ch, thanks for your feedback.
There is actually a --json option that you can use with the command snapshot list in order to get machine readable output.
Oh 🤦♂️ good to know. Maybe show the possible outputs when invoking --help since I was not aware of that at all (probably should read the docs). Thanks!
This is actually a specific option to each sub command so it does not show on the global help.
However, it is displayed in the snapshot list command help:
./mithril-client snapshot list --help
List available snapshots
Usage: mithril-client snapshot list [OPTIONS]
Options:
--json Enable JSON output
-h, --help Print help
Why
I wanted to wrap mithirl-client in a separate app and provide the option for the users to just download the lastest snapshot. To do that I would had to parse the
snapshot list
output which contains a list of snapshots and then take the latest one to do asnapshot download
in the background. Would it be possible to provide a separate command to just download the latest known snapshot for the specified network or alternatively some other type of output like json? It is hard to get rid of all unwanted characters in the output and separate command would make this a breeze.To do
latest
value insnapshot list
command which downloads the latest snapshotlatest
value inmsd list
command which downloads the latest snapshotThe text was updated successfully, but these errors were encountered: