is `new Config("gcp").Require("project")` a reason...
# google-cloud
h
is
new Config("gcp").Require("project")
a reasonable way to grab the project id out of config when needed? Are there downsides to this approach?
f
Generally speaking, provider config should be available through the ‘config’ module of any given provider, e.g.
Gcp.Config.Project
should be “just there”, so you can always use that as a shorthand. There’s also nothing wrong w/ your approach of explicitly reading from the config itself.
h
that's super helpful, thank you!