first
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/clembo590/daggerverse/first@0e3b740057ee8fd7f04ee08269d7a31e29e8e911Entrypoint
Return Type
First Example
dagger -m github.com/clembo590/daggerverse/first@0e3b740057ee8fd7f04ee08269d7a31e29e8e911 call \
func (m *MyModule) Example() *dagger.First {
return dag.
First()
}@function
def example() -> dagger.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
| Name | Type | Default Value | Description |
|---|---|---|---|
| stringArg | String ! | - | No description provided |
Example
dagger -m github.com/clembo590/daggerverse/first@0e3b740057ee8fd7f04ee08269d7a31e29e8e911 call \
my-first-function --string-arg stringfunc (m *MyModule) Example(stringArg string) *dagger.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
| Name | Type | Default Value | Description |
|---|---|---|---|
| stringArg | String ! | - | No description provided |
Example
dagger -m github.com/clembo590/daggerverse/first@0e3b740057ee8fd7f04ee08269d7a31e29e8e911 call \
fake-duplicate --string-arg stringfunc (m *MyModule) Example(stringArg string) *dagger.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
| Name | Type | Default Value | Description |
|---|---|---|---|
| workingDirectory | Directory ! | - | No description provided |
Example
dagger -m github.com/clembo590/daggerverse/first@0e3b740057ee8fd7f04ee08269d7a31e29e8e911 call \
my-async-function --working-directory DIR_PATHfunc (m *MyModule) Example(ctx context.Context, workingDirectory *dagger.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
| Name | Type | Default Value | Description |
|---|---|---|---|
| scripts | Directory | - | No description provided |
| gitRoot | Directory | - | No description provided |
Example
dagger -m github.com/clembo590/daggerverse/first@0e3b740057ee8fd7f04ee08269d7a31e29e8e911 call \
build-zsh-containerfunc (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()
}