initStandaloneDangModule creates a standalone Dang module in the current working directory and overwrites main.dang with the provided source.
(name, source string)
| 49 | // initStandaloneDangModule creates a standalone Dang module in the current |
| 50 | // working directory and overwrites main.dang with the provided source. |
| 51 | func initStandaloneDangModule(name, source string) dagger.WithContainerFunc { |
| 52 | return func(ctr *dagger.Container) *dagger.Container { |
| 53 | return ctr. |
| 54 | With(daggerExec("init", "--sdk=dang", "--source=.", "--name="+name)). |
| 55 | WithNewFile("main.dang", source) |
| 56 | } |
| 57 | } |
| 58 | |
| 59 | // initDangBlueprint creates a Dang blueprint module and an app module that |
| 60 | // uses it. The blueprint source is written to blueprints/<name>/ and the app |
no test coverage detected