AddNewFile adds a new file, with contents, to the module's source.
(name, contents string)
| 134 | |
| 135 | // AddNewFile adds a new file, with contents, to the module's source. |
| 136 | func (m *PythonSdk) AddNewFile(name, contents string) { |
| 137 | m.ContextDir = m.ContextDir.WithNewFile(path.Join(m.SubPath, name), contents) |
| 138 | } |
| 139 | |
| 140 | // AddFile adds a file to the module's source. |
| 141 | func (m *PythonSdk) AddFile(name string, file *dagger.File) { |
no test coverage detected