Add outline for `deck` command
This commit is contained in:
parent
5e271c4132
commit
a028126fba
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue