From a028126fbadd8559dfa268dafa2bff0492018342 Mon Sep 17 00:00:00 2001 From: The Magician Date: Wed, 9 Oct 2024 20:33:47 +0100 Subject: [PATCH] Add outline for `deck` command --- sevenkeys/main.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sevenkeys/main.go b/sevenkeys/main.go index 6a8f402..ed6cc41 100644 --- a/sevenkeys/main.go +++ b/sevenkeys/main.go @@ -15,6 +15,7 @@ const ( CreateStorageAreaSubcommand string = "createstorage" ImportSubcommand string = "import" SearchSubcommand string = "search" + DeckSubcommand string = "deck" ) func main() { @@ -83,6 +84,12 @@ func main() { logic.Check(err) logic.GenericSearch(searchOptions) break + case DeckSubcommand: + deckCmd := flag.NewFlagSet(DeckSubcommand, flag.ExitOnError) + deckCmd.Parse(flag.Args()[1:]) + + filename := deckCmd.Args()[0] + break default: fmt.Fprintf(os.Stderr, "Unrecognized subcommand: %s\n", os.Args[1]) break