-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmain.go
More file actions
24 lines (17 loc) · 725 Bytes
/
main.go
File metadata and controls
24 lines (17 loc) · 725 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package main
import (
"net/http"
cli "github.com/bertiewhite/cricwatch/internal/adaptors/primary"
"github.com/bertiewhite/cricwatch/internal/adaptors/secondary/http/espn"
"github.com/bertiewhite/cricwatch/internal/adaptors/secondary/terminaldisplayer"
"github.com/bertiewhite/cricwatch/internal/adaptors/secondary/userinput/pterminput"
scoreservice "github.com/bertiewhite/cricwatch/internal/core/services"
)
func main() {
espnClient := espn.NewClient(http.DefaultClient)
// dumPrinter := terminaldisplayer.NewDumbPrinter()
ptermOutput := terminaldisplayer.NewPtermDisplayer()
ptermInputter := pterminput.New()
svc := scoreservice.NewScoreService(espnClient, ptermOutput, ptermInputter)
cli.Execute(svc)
}