aboutsummaryrefslogtreecommitdiff
path: root/cmd/list.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/list.go')
-rw-r--r--cmd/list.go21
1 files changed, 21 insertions, 0 deletions
diff --git a/cmd/list.go b/cmd/list.go
new file mode 100644
index 0000000..d2b9a03
--- /dev/null
+++ b/cmd/list.go
@@ -0,0 +1,21 @@
+package cmd
+
+import (
+ "flag"
+ "fmt"
+)
+
+func List(params []string) {
+ flags := flag.NewFlagSet("list", flag.ExitOnError)
+
+ var withPaths bool
+
+ const WITH_PATHS_HELP = "print paths to the provided reference within the snapshot"
+
+ flags.BoolVar(&withPaths, "paths", false, WITH_PATHS_HELP);
+ flags.BoolVar(&withPaths, "p", false, WITH_PATHS_HELP);
+
+ flags.Parse(params);
+
+ fmt.Printf("Your flag is: %t", withPaths);
+}