Dagger
Search

sub

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/daggerverse/calltest/sub@fe8f9ede8cf6afdb1b15adbfd0103ce86c141bbc

Entrypoint

Return Type
Sub
Example
dagger -m github.com/marcosnils/daggerverse/calltest/sub@fe8f9ede8cf6afdb1b15adbfd0103ce86c141bbc call \
func (m *MyModule) Example() *dagger.Sub  {
	return dag.
			Sub()
}
@function
def example() -> dagger.Sub:
	return (
		dag.sub()
	)
@func()
example(): Sub {
	return dag
		.sub()
}

Types

Sub 🔗

subTest() 🔗

Returns a container that echoes whatever string argument is provided

Return Type
String !
Example
dagger -m github.com/marcosnils/daggerverse/calltest/sub@fe8f9ede8cf6afdb1b15adbfd0103ce86c141bbc call \
 sub-test
func (m *MyModule) Example(ctx context.Context) string  {
	return dag.
			Sub().
			SubTest(ctx)
}
@function
async def example() -> str:
	return await (
		dag.sub()
		.sub_test()
	)
@func()
async example(): Promise<string> {
	return dag
		.sub()
		.subTest()
}