aboutsummaryrefslogtreecommitdiff
path: root/cmd/diff.go
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2021-07-21 19:21:14 -0500
committerFurkan Sahin <furkan-dev@proton.me>2021-07-21 19:21:14 -0500
commit43d2d2f3d912370b7aea05a767151d3b4def778e (patch)
tree2b3bf225b482efda17e5a188dc5c7be3ab8645ed /cmd/diff.go
parent8a78b12f9eff397afeca0ebbba49bf5a2de18393 (diff)
Add subcommand structure for diff, list, and overwrite
Diffstat (limited to 'cmd/diff.go')
-rw-r--r--cmd/diff.go21
1 files changed, 21 insertions, 0 deletions
diff --git a/cmd/diff.go b/cmd/diff.go
new file mode 100644
index 0000000..7caf96b
--- /dev/null
+++ b/cmd/diff.go
@@ -0,0 +1,21 @@
+package cmd
+
+import (
+ "flag"
+ "fmt"
+)
+
+func Diff(params []string) {
+ flags := flag.NewFlagSet("diff", flag.ExitOnError)
+
+ var walk bool
+
+ const WALK_HELP = "walk backwards through the diff history"
+
+ flags.BoolVar(&walk, "walk", false, WALK_HELP);
+ flags.BoolVar(&walk, "w", false, WALK_HELP);
+
+ flags.Parse(params);
+
+ fmt.Printf("Your flag is: %t", walk);
+}