qri-io / qri

you're invited to a data party!
https://qri.io
GNU General Public License v3.0
1.11k stars 66 forks source link

need command to restore a dataset or component to a previous state #861

Closed dustmop closed 5 years ago

dustmop commented 5 years ago

If the user runs status and sees a component is modified (or has an error) and wants to restore the version from the last commit, they need a command to do so. Going to try prototyping this feature using qri restore, with qri restore [component name] for a single component, and qri restore --all for the entire dataset. We can rename later if needed.

dustmop commented 5 years ago

Note that this command is essentially qri get [component name] > [component name].[extension] but smarter and more convenient. It is needed so that Desktop can fix https://github.com/qri-io/qri/issues/839.

dustmop commented 5 years ago

This was implemented by https://github.com/qri-io/qri/pull/867.