hello
This module has been generated via dagger init and serves as a reference tobasic module structure as you get started with Dagger.
Two functions have been pre-created. You can modify, delete, or add to them,
as needed. They demonstrate usage of arguments and return types using simple
echo and grep commands. The functions can be called from the dagger CLI or
from one of the SDKs.
The first line in this comment block is a short description line and the
rest is a long description with more detail on the module's purpose or usage,
if appropriate. All modules should have a short description.
Installation
dagger install github.com/aluzzardi/hello-dagger@9011473e97381fa832d27f38da3aac35558ed2aeEntrypoint
Return Type
Hello Example
dagger -m github.com/aluzzardi/hello-dagger@9011473e97381fa832d27f38da3aac35558ed2ae call \
func (m *MyModule) Example() *dagger.Hello {
return dag.
Hello()
}@function
def example() -> dagger.Hello:
return (
dag.hello()
)@func()
example(): Hello {
return dag
.hello()
}Types
Hello 🔗
build() 🔗
Returns lines that match a pattern in the files of the provided Directory
Return Type
Container !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| source | Directory | - | No description provided |
Example
dagger -m github.com/aluzzardi/hello-dagger@9011473e97381fa832d27f38da3aac35558ed2ae call \
buildfunc (m *MyModule) Example() *dagger.Container {
return dag.
Hello().
Build()
}@function
def example() -> dagger.Container:
return (
dag.hello()
.build()
)@func()
example(): Container {
return dag
.hello()
.build()
}dev() 🔗
Return Type
Service !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| source | Directory | - | No description provided |
Example
dagger -m github.com/aluzzardi/hello-dagger@9011473e97381fa832d27f38da3aac35558ed2ae call \
devfunc (m *MyModule) Example() *dagger.Service {
return dag.
Hello().
Dev()
}@function
def example() -> dagger.Service:
return (
dag.hello()
.dev()
)@func()
example(): Service {
return dag
.hello()
.dev()
}