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