about summary refs log tree commit diff
path: root/src/main.go
blob: 8ca13a79dc47be559522f236d2c2616bf08d3cdb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package main

import (
	"flag"
	"log"
)

func main() {
	// Set up flags
	registerHTTPFlags()
	registerSessionFlags()
	registerCredentialsFlags()
	registerSeedFlags()
	flag.Parse()

	// Read challenges from file
	getChallengesFromSeedFile()
	generateJSONFromChallenges()

	// Run HTTP server
	log.Fatalln(runHTTPServer())
}