Merge pull request #272 from colincross/sandbox_primary_builder

Add Context.SetFs
This commit is contained in:
colincross 2019-12-17 14:42:15 -08:00 committed by GitHub
commit 9999eddc46
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -889,6 +889,10 @@ func (c *Context) MockFileSystem(files map[string][]byte) {
c.fs = pathtools.MockFs(files)
}
func (c *Context) SetFs(fs pathtools.FileSystem) {
c.fs = fs
}
// openAndParse opens and parses a single Blueprints file, and returns the results
func (c *Context) openAndParse(filename string, scope *parser.Scope, rootDir string,
parent *fileParseContext) (file *parser.File,