Skip to content

Commit a715b52

Browse files
committed
add module level argument
Signed-off-by: Marcos Lilljedahl <marcosnils@gmail.com>
1 parent 37955bd commit a715b52

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

main.go

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,16 @@ import (
2020
"dagger/sam-dev/internal/dagger"
2121
)
2222

23-
type SamDev struct{}
23+
type SamDev struct {
24+
dir *dagger.Directory
25+
}
26+
27+
func New(
28+
// +defaultPath="."
29+
dir *dagger.Directory,
30+
) *SamDev {
31+
return &SamDev{dir: dir}
32+
}
2433

2534
func (m *SamDev) Test(
2635
dir *dagger.Directory,

0 commit comments

Comments
 (0)