From 00e03ce591b5aea612d5257b935402ddeca6c1c6 Mon Sep 17 00:00:00 2001 From: flu0r1ne Date: Wed, 21 Jul 2021 19:12:45 -0500 Subject: Directory structure for list cmd --- cmds/list.go | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 cmds/list.go (limited to 'cmds/list.go') 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); +} -- cgit v1.2.3