From fb8aee6c5147b8751a3920f613934d90b79ef4c5 Mon Sep 17 00:00:00 2001 From: flu0r1ne Date: Wed, 21 Jul 2021 23:00:00 -0500 Subject: Added parser for +- syntax for relative references to snapshots --- cmd/cat.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'cmd') diff --git a/cmd/cat.go b/cmd/cat.go index 99b48fb..4f54abc 100644 --- a/cmd/cat.go +++ b/cmd/cat.go @@ -2,8 +2,11 @@ package cmd import ( "fmt" + "golang.flu0r1ne.net/zfdiff/snap" ) func Cat(params []string) { - fmt.Println(params) + snapRef := snap.ToRelative(params[0]) + + fmt.Println(snapRef); } \ No newline at end of file -- cgit v1.2.3