cmd

package
v0.0.0-...-68bd8a1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 6, 2022 License: BSD-2-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handle

func Handle(ctx context.Context, opts Options, repository app.CardsRepository, storage storage.Storage) error

Types

type Options

type Options struct {
	Number    int    `short:"n" long:"number" description:"Number of the card in the set"`
	Set       string `short:"s" long:"set" description:"Magic the Gathering set of the card"`
	Quantity  int    `short:"q" long:"quantity" default:"1" description:"Number of copies of that card"`
	Foil      bool   `short:"f" long:"foil" description:"Foil card"`
	Altered   bool   `short:"a" long:"altered" description:"Altered card"`
	Signed    bool   `short:"i" long:"signed" description:"Signed card"`
	Condition string `short:"c" long:"condition" default:"nm" description:"Card's condition'"`
	Language  string `short:"l" long:"language" default:"en" description:"Card's language'"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL