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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user