Parse creates a new parser and parses the entire project.
(ctx context.Context, repo drivers.RepoStore, instanceID, environment, defaultOLAPConnector string, strictResolverProps bool)
| 232 | |
| 233 | // Parse creates a new parser and parses the entire project. |
| 234 | func Parse(ctx context.Context, repo drivers.RepoStore, instanceID, environment, defaultOLAPConnector string, strictResolverProps bool) (*Parser, error) { |
| 235 | p := &Parser{ |
| 236 | Repo: repo, |
| 237 | InstanceID: instanceID, |
| 238 | Environment: environment, |
| 239 | DefaultOLAPConnector: defaultOLAPConnector, |
| 240 | StrictResolverProps: strictResolverProps, |
| 241 | } |
| 242 | |
| 243 | err := p.reload(ctx) |
| 244 | if err != nil { |
| 245 | return nil, err |
| 246 | } |
| 247 | |
| 248 | return p, nil |
| 249 | } |
| 250 | |
| 251 | // Reparse re-parses the indicated file paths, updating the Parser's state. |
| 252 | // If rill.yaml has previously errored, or if rill.yaml is included in paths, it will reload the entire project. |