-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.go
More file actions
47 lines (34 loc) · 1.17 KB
/
main.go
File metadata and controls
47 lines (34 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
package main
import (
// "github.com/logrusorgru/aurora"
"github.com/dlawregiets/oak/pkg/cmd"
)
var (
// collectionPath = flag.String("collection", "collection.json", "Path to collection.json (defaults ./collection.json")
// dataPath = flag.String("data", "data", "Path to clone of dlawregiets/pokemon-tcg-data (defaults to ./data)")
// imageLocalPath = flag.String("image-path", "images", "Path to images of cards (defaults to ./images)")
// imageURLBase = flag.String("image-url-base", "", "Image URL base path (defaults to empty string)")
// autosave = false
// pkmnTmpl *template.Template
// indexCmd = flag.NewFlagSet("index", flag.ExitOnError)
// serveCmd = flag.NewFlagSet("serve", flag.ExitOnError)
)
func main() {
// flag.Parse()
// urlBaseEnv := os.Getenv("PKMN_BASE_URL")
// if urlBaseEnv != "" {
// *imageURLBase = urlBaseEnv
// }
// imgPathEnv := os.Getenv("PKMN_IMG_PATH")
// if imgPathEnv != "" {
// *imageLocalPath = imgPathEnv
// }
// *imageURLBase = strings.TrimSuffix(*imageURLBase, "/")
// // ReadCards()
// ReadDecks()
// myCollection = NewCollection()
// myCollection.Read(*collectionPath)
// go serve()
// handleInput()
cmd.Execute()
}