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/sealder/enter-the-daggerverse/hello@375322aa1eae14c3a243f0fa7953a8af529864d0Entrypoint
Return Type
Hello Example
dagger -m github.com/sealder/enter-the-daggerverse/hello@375322aa1eae14c3a243f0fa7953a8af529864d0 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 🔗
publish() 🔗
Publish the application container after building and testing it on-the-fly
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| source | Directory ! | - | No description provided |
Example
dagger -m github.com/sealder/enter-the-daggerverse/hello@375322aa1eae14c3a243f0fa7953a8af529864d0 call \
publish --source DIR_PATHfunc (m *MyModule) Example(ctx context.Context, source *dagger.Directory) string {
return dag.
Hello().
Publish(ctx, source)
}@function
async def example(source: dagger.Directory) -> str:
return await (
dag.hello()
.publish(source)
)@func()
async example(source: Directory): Promise<string> {
return dag
.hello()
.publish(source)
}build() 🔗
Build the application container
Return Type
Container !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| source | Directory ! | - | No description provided |
Example
dagger -m github.com/sealder/enter-the-daggerverse/hello@375322aa1eae14c3a243f0fa7953a8af529864d0 call \
build --source DIR_PATHfunc (m *MyModule) Example(source *dagger.Directory) *dagger.Container {
return dag.
Hello().
Build(source)
}@function
def example(source: dagger.Directory) -> dagger.Container:
return (
dag.hello()
.build(source)
)@func()
example(source: Directory): Container {
return dag
.hello()
.build(source)
}buildEnv() 🔗
Build a ready-to-use development environment
Return Type
Void ! Example
dagger -m github.com/sealder/enter-the-daggerverse/hello@375322aa1eae14c3a243f0fa7953a8af529864d0 call \
build-envfunc (m *MyModule) Example(ctx context.Context) {
return dag.
Hello().
BuildEnv(ctx)
}@function
async def example() -> None:
return await (
dag.hello()
.build_env()
)@func()
async example(): Promise<void> {
return dag
.hello()
.buildEnv()
}