other-module
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/marcosnils/dagger_example/other-module@2d9c1b139e6a073c425ff18a259ca33217a564d5
Entrypoint
Return Type
OtherModule
Example
dagger -m github.com/marcosnils/dagger_example/other-module@2d9c1b139e6a073c425ff18a259ca33217a564d5 call \
func (m *MyModule) Example() *dagger.OtherModule {
return dag.
OtherModule()
}
@function
def example() -> dagger.OtherModule:
return (
dag.other_module()
)
@func()
example(): OtherModule {
return dag
.otherModule()
}
Types
OtherModule 🔗
containerEcho() 🔗
Returns a container that echoes whatever string argument is provided
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
ctr | Container ! | - | No description provided |
Example
dagger -m github.com/marcosnils/dagger_example/other-module@2d9c1b139e6a073c425ff18a259ca33217a564d5 call \
container-echo --ctr IMAGE:TAG
func (m *MyModule) Example(ctr *dagger.Container) *dagger.Container {
return dag.
OtherModule().
ContainerEcho(ctr)
}
@function
def example(ctr: dagger.Container) -> dagger.Container:
return (
dag.other_module()
.container_echo(ctr)
)
@func()
example(ctr: Container): Container {
return dag
.otherModule()
.containerEcho(ctr)
}