Dagger
Search

other-module

This module has been generated via dagger init and serves as a reference to
basic 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@b379ab835b6d95285149c1eff6ab1f8a912c8e95

Entrypoint

Return Type
OtherModule
Example
dagger -m github.com/marcosnils/dagger_example/other-module@b379ab835b6d95285149c1eff6ab1f8a912c8e95 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
Directory !
Arguments
NameTypeDefault ValueDescription
srcDirectory !-No description provided
Example
dagger -m github.com/marcosnils/dagger_example/other-module@b379ab835b6d95285149c1eff6ab1f8a912c8e95 call \
 container-echo --src DIR_PATH
func (m *MyModule) Example(src *dagger.Directory) *dagger.Directory  {
	return dag.
			OtherModule().
			ContainerEcho(src)
}
@function
def example(src: dagger.Directory) -> dagger.Directory:
	return (
		dag.other_module()
		.container_echo(src)
	)
@func()
example(src: Directory): Directory {
	return dag
		.otherModule()
		.containerEcho(src)
}