diff --git a/config/config.go b/config/config.go index d7434a4..3957508 100644 --- a/config/config.go +++ b/config/config.go @@ -133,3 +133,12 @@ type NetworkDef struct { Optional bool Script string } + +func (c *Config) FileContent(filePath string) []byte { + for _, f := range c.Files { + if f.Path == filePath { + return []byte(f.Content) + } + } + return nil +}