aboutsummaryrefslogtreecommitdiff
path: root/cmds/list.go
diff options
context:
space:
mode:
authorflu0r1ne <flu0r1ne@flu0r1ne.net>2021-07-21 19:12:45 -0500
committerflu0r1ne <flu0r1ne@flu0r1ne.net>2021-07-21 19:12:45 -0500
commit00e03ce591b5aea612d5257b935402ddeca6c1c6 (patch)
tree5da3f4b70d1ab650835aeb0c63b77ce6599093cb /cmds/list.go
parent7c750f3797bfc36d943ec1c71bc932d547f51204 (diff)
downloadzsu-00e03ce591b5aea612d5257b935402ddeca6c1c6.tar.xz
zsu-00e03ce591b5aea612d5257b935402ddeca6c1c6.zip
Directory structure for list cmd
Diffstat (limited to 'cmds/list.go')
-rw-r--r--cmds/list.go21
1 files changed, 21 insertions, 0 deletions
diff --git a/cmds/list.go b/cmds/list.go
new file mode 100644
index 0000000..14fa53d
--- /dev/null
+++ b/cmds/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);
+}