lib, lang, docs: Add --only-unify option

This adds a new run flag for the lang frontend to exit immediately
following type unification. This makes it easier to use this as a step
in CI, and also to type the execution for performance comparison
reasons.
This commit is contained in:
James Shubin
2024-01-02 13:06:19 -05:00
parent 32ca815896
commit 24054f905f
3 changed files with 36 additions and 2 deletions

View File

@@ -79,6 +79,9 @@ func run(c *cli.Context, name string, gapiObj gapi.GAPI) error {
if err != nil {
return errwrap.Wrapf(err, "cli parse error")
}
if c.Bool("only-unify") && deploy == nil {
return nil // we end early
}
obj.Deploy = deploy
if obj.Deploy == nil {
// nobody activated, but we'll still watch the etcd deploy chan,