AddDirectory adds a directory to the module's source.
(name string, dir *dagger.Directory)
| 155 | |
| 156 | // AddDirectory adds a directory to the module's source. |
| 157 | func (m *PythonSdk) AddDirectory(name string, dir *dagger.Directory) { |
| 158 | m.ContextDir = m.ContextDir.WithDirectory(path.Join(m.SubPath, name), dir) |
| 159 | } |
| 160 | |
| 161 | // We could use modSource.Directory("") but we'll need to use the |
| 162 | // context directory in GeneratedCode later, so rather than trying |
no test coverage detected