config.FileContent
This commit is contained in:
parent
070ea02679
commit
28a99f5c2b
@ -133,3 +133,12 @@ type NetworkDef struct {
|
|||||||
Optional bool
|
Optional bool
|
||||||
Script string
|
Script string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (c *Config) FileContent(filePath string) []byte {
|
||||||
|
for _, f := range c.Files {
|
||||||
|
if f.Path == filePath {
|
||||||
|
return []byte(f.Content)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user