aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorflu0r1ne <flu0r1ne@flu0r1ne.net>2021-07-21 23:00:00 -0500
committerflu0r1ne <flu0r1ne@flu0r1ne.net>2021-07-21 23:00:00 -0500
commitfb8aee6c5147b8751a3920f613934d90b79ef4c5 (patch)
tree46dd389d9695b3c4f9f1e65962e76b383f703863 /cmd
parenta10f10119f05320fb71574ad54b3161f5a37d371 (diff)
downloadzsu-fb8aee6c5147b8751a3920f613934d90b79ef4c5.tar.xz
zsu-fb8aee6c5147b8751a3920f613934d90b79ef4c5.zip
Added parser for +- syntax for relative references to snapshots
Diffstat (limited to 'cmd')
-rw-r--r--cmd/cat.go5
1 files changed, 4 insertions, 1 deletions
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