Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/checkpoint-restore/criu.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/crit
diff options
context:
space:
mode:
authorTycho Andersen <tycho.andersen@canonical.com>2015-07-23 02:51:00 +0300
committerPavel Emelyanov <xemul@parallels.com>2015-07-23 15:15:27 +0300
commit1de38f344df719e41c24f1cef631eccc0cf95a03 (patch)
tree355bc289ab915529c47d69a0fb28336b194a833a /crit
parent430a9be90fb9df12a4ea53d445dfddb1a4e9a805 (diff)
crit: add a `show` option for human consumption
This saves some keystrokes and is equivalent to decode --pretty. Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
Diffstat (limited to 'crit')
-rwxr-xr-xcrit6
1 files changed, 6 insertions, 0 deletions
diff --git a/crit b/crit
index 350362c36..ba586fab8 100755
--- a/crit
+++ b/crit
@@ -73,6 +73,12 @@ def main():
help = 'where to put criu image in binary format (stdout by default)')
encode_parser.set_defaults(func=encode)
+ # Show
+ show_parser = subparsers.add_parser('show',
+ help = "convert criu image from binary to human-readable json")
+ show_parser.add_argument("in")
+ show_parser.set_defaults(func=decode, pretty=True, out=None)
+
opts = vars(parser.parse_args())
opts["func"](opts)