Walk parent directories to find config file (#141)
Code is mostly borrowed from [gqlgen](https://github.com/99designs/gqlgen). The idea here is that I want to be able to store `genqlient.yaml` at the top-level, but my client code lives down in `graph/client/`. I put the `//go:generate` line in `graph/client/client.go`.
This commit is contained in:
+3
-1
@@ -1,6 +1,8 @@
|
||||
# genqlient.yaml is genqlient's configuration file. This genqlient.yaml is an
|
||||
# example; use `go run github.com/Khan/genqlient --init` to generate a simple
|
||||
# starting point.
|
||||
# starting point. By default, genqlient looks for the configuration file
|
||||
# named [.]genqlient.y[a]ml in the current directory or any ancestor; or the
|
||||
# filename may be given as an argument.
|
||||
|
||||
# The filename with the GraphQL schema (in SDL format), relative to
|
||||
# genqlient.yaml.
|
||||
|
||||
Reference in New Issue
Block a user