|
@@ -38,7 +38,7 @@ func main() {
|
|
|
|
|
|
for _, module := range modules {
|
|
|
if err := generate(module); err != nil {
|
|
|
- _, _ = fmt.Fprintf(os.Stderr, err.Error())
|
|
|
+ _, _ = fmt.Fprintf(os.Stderr, "%s\n", err.Error())
|
|
|
os.Exit(2)
|
|
|
}
|
|
|
}
|
|
@@ -93,5 +93,23 @@ func makeConfig(m admin_api.Module) *config.Config {
|
|
|
cfg.SchemaFilename = config.StringList{
|
|
|
fmt.Sprintf("subgraph/%s.tpl", m), "ext/*.graphql"}
|
|
|
|
|
|
+ //cfg.Models = map[string]config.TypeMapEntry{
|
|
|
+ // "DateTime": {
|
|
|
+ // Model: config.StringList{"github.com/gshopify/service-wrapper/scalar.DateTime"},
|
|
|
+ // },
|
|
|
+ // "LanguageCode": {
|
|
|
+ // Model: config.StringList{"github.com/gshopify/service-wrapper/model.LanguageCode"},
|
|
|
+ // },
|
|
|
+ // "CountryCode": {
|
|
|
+ // Model: config.StringList{"github.com/gshopify/service-wrapper/model.CountryCode"},
|
|
|
+ // },
|
|
|
+ // "UnsignedInt64": {
|
|
|
+ // Model: config.StringList{"github.com/gshopify/service-wrapper/model.UInt"},
|
|
|
+ // },
|
|
|
+ // "Decimal": {
|
|
|
+ // Model: config.StringList{"github.com/gshopify/service-wrapper/scalar.Decimal"},
|
|
|
+ // },
|
|
|
+ //}
|
|
|
+
|
|
|
return cfg
|
|
|
}
|