sg: ignore config overwrite when generating reference for docs
Created by: mrnugget
Finally fixing this after it made me say "ah! oh no" one too many times in the past few weeks.
Here's what previously happened on THORSTEN & SG GENERATE:
- Thorsten has a custom commandset named
horsegraph
insg.config.overwrite.yaml
, along with some other custom commands. - Thorsten creates a database migration/GraphQL schema addition/...
- Thorsten runs
sg generate
- Thorsten commits and pushes commit
- Thorsten sees that he pushed commit in which
sg
's reference in the documentation now contains"horsegraph"
as an official commandset to be used withsg start
- Thorsten says "ah! oh no" and undoes changes
... multiple times.
So what this does here is introduce a disable-overwrite
flag that
causes only the standard config to be read.
It's then used in the go:generate
directive that runs sg help
.
Test plan
- See steps above. I tested this manually. This PR contains an updated reference (to include
-disable-overwrite
) but no custom commands.