Dagger
Search

first

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/clembo590/daggerverse/first@0e3b740057ee8fd7f04ee08269d7a31e29e8e911

Entrypoint

Return Type
First
Example
dagger -m github.com/clembo590/daggerverse/first@0e3b740057ee8fd7f04ee08269d7a31e29e8e911 call \
func (m *myModule) example() *First  {
	return dag.
			First()
}
@function
def example() -> dag.First:
	return (
		dag.first()
	)
@func()
example(): First {
	return dag
		.first()
}

Types

First 🔗

myFirstFunction() 🔗

Returns a container that echoes whatever string argument is provided

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
stringArgString !-No description provided
Example
dagger -m github.com/clembo590/daggerverse/first@0e3b740057ee8fd7f04ee08269d7a31e29e8e911 call \
 my-first-function --string-arg string
func (m *myModule) example(stringArg string) *Container  {
	return dag.
			First().
			MyFirstFunction(stringArg)
}
@function
def example(string_arg: str) -> dagger.Container:
	return (
		dag.first()
		.my_first_function(string_arg)
	)
@func()
example(stringArg: string): Container {
	return dag
		.first()
		.myFirstFunction(stringArg)
}

fakeDuplicate() 🔗

Returns a container that echoes whatever string argument is provided

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
stringArgString !-No description provided
Example
dagger -m github.com/clembo590/daggerverse/first@0e3b740057ee8fd7f04ee08269d7a31e29e8e911 call \
 fake-duplicate --string-arg string
func (m *myModule) example(stringArg string) *Container  {
	return dag.
			First().
			FakeDuplicate(stringArg)
}
@function
def example(string_arg: str) -> dagger.Container:
	return (
		dag.first()
		.fake_duplicate(string_arg)
	)
@func()
example(stringArg: string): Container {
	return dag
		.first()
		.fakeDuplicate(stringArg)
}

myAsyncFunction() 🔗

Returns lines that match a pattern in the files of the provided Directory

Return Type
String !
Arguments
NameTypeDefault ValueDescription
workingDirectoryDirectory !-No description provided
Example
dagger -m github.com/clembo590/daggerverse/first@0e3b740057ee8fd7f04ee08269d7a31e29e8e911 call \
 my-async-function --working-directory DIR_PATH
func (m *myModule) example(ctx context.Context, workingDirectory *Directory) string  {
	return dag.
			First().
			MyAsyncFunction(ctx, workingDirectory)
}
@function
async def example(working_directory: dagger.Directory) -> str:
	return await (
		dag.first()
		.my_async_function(working_directory)
	)
@func()
async example(workingDirectory: Directory): Promise<string> {
	return dag
		.first()
		.myAsyncFunction(workingDirectory)
}

buildZshContainer() 🔗

Return Type
String !
Arguments
NameTypeDefault ValueDescription
scriptsDirectory -No description provided
gitRootDirectory -No description provided
Example
dagger -m github.com/clembo590/daggerverse/first@0e3b740057ee8fd7f04ee08269d7a31e29e8e911 call \
 build-zsh-container
func (m *myModule) example(ctx context.Context) string  {
	return dag.
			First().
			BuildZshContainer(ctx)
}
@function
async def example() -> str:
	return await (
		dag.first()
		.build_zsh_container()
	)
@func()
async example(): Promise<string> {
	return dag
		.first()
		.buildZshContainer()
}