WithResolvedPaths set ProjectOptions to enable paths resolution
(resolve bool)
| 338 | |
| 339 | // WithResolvedPaths set ProjectOptions to enable paths resolution |
| 340 | func WithResolvedPaths(resolve bool) ProjectOptionsFn { |
| 341 | return func(o *ProjectOptions) error { |
| 342 | o.loadOptions = append(o.loadOptions, func(options *loader.Options) { |
| 343 | options.ResolvePaths = resolve |
| 344 | }) |
| 345 | return nil |
| 346 | } |
| 347 | } |
| 348 | |
| 349 | // WithResourceLoader register support for ResourceLoader to manage remote resources |
| 350 | func WithResourceLoader(r loader.ResourceLoader) ProjectOptionsFn { |
no outgoing calls
searching dependent graphs…