Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions fake.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ import (
"github.snooguts.net/reddit/reddit-service-authentication-go/thrift/reddit/sso"
)

var configPath = flag.String("config", "", "Path to the config file to use.")

type config struct {
baseplate.Config `yaml:",inline"`

Authentication authenticationsvc.Config `yaml:"authentication"`
Sso ssosvc.Config `yaml:"sso"`
OAuth oauthsvc.Config `yaml:"oauth"`
Expand All @@ -37,6 +37,9 @@ func main() {
flag.Parse()

var cfg config
if err := baseplate.ParseConfigYAML(&cfg); err != nil {
log.Fatalf("parsing config: %s", err)
}
ctx, bp, err := baseplate.New(context.Background(), baseplate.NewArgs{
ConfigPath: *configPath,
ServiceCfg: &cfg,
Expand Down