Add outline for `deck` command

This commit is contained in:
The Magician 2024-10-09 20:33:47 +01:00
parent 5e271c4132
commit a028126fba
1 changed files with 7 additions and 0 deletions

View File

@ -15,6 +15,7 @@ const (
CreateStorageAreaSubcommand string = "createstorage" CreateStorageAreaSubcommand string = "createstorage"
ImportSubcommand string = "import" ImportSubcommand string = "import"
SearchSubcommand string = "search" SearchSubcommand string = "search"
DeckSubcommand string = "deck"
) )
func main() { func main() {
@ -83,6 +84,12 @@ func main() {
logic.Check(err) logic.Check(err)
logic.GenericSearch(searchOptions) logic.GenericSearch(searchOptions)
break break
case DeckSubcommand:
deckCmd := flag.NewFlagSet(DeckSubcommand, flag.ExitOnError)
deckCmd.Parse(flag.Args()[1:])
filename := deckCmd.Args()[0]
break
default: default:
fmt.Fprintf(os.Stderr, "Unrecognized subcommand: %s\n", os.Args[1]) fmt.Fprintf(os.Stderr, "Unrecognized subcommand: %s\n", os.Args[1])
break break