hello
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/franela/hello@504732d7e264d7cae276feba6bb29a26bb125e8d
Entrypoint
Return Type
Hello
Example
dagger -m github.com/franela/hello@504732d7e264d7cae276feba6bb29a26bb125e8d call \
func (m *MyModule) Example() *dagger.Hello {
return dag.
Hello()
}
@function
def example() -> dagger.Hello:
return (
dag.hello()
)
@func()
example(): Hello {
return dag
.hello()
}
Types
Hello 🔗
hello() 🔗
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
bar | String ! | - | No description provided |
baz | String ! | - | No description provided |
Example
dagger -m github.com/franela/hello@504732d7e264d7cae276feba6bb29a26bb125e8d call \
hello --bar string --baz string
func (m *MyModule) Example(ctx context.Context, bar string, baz string) string {
return dag.
Hello().
Hello(ctx, bar, baz)
}
@function
async def example(bar: str, baz: str) -> str:
return await (
dag.hello()
.hello(bar, baz)
)
@func()
async example(bar: string, baz: string): Promise<string> {
return dag
.hello()
.hello(bar, baz)
}
bye() 🔗
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
foo | String ! | - | No description provided |
Example
dagger -m github.com/franela/hello@504732d7e264d7cae276feba6bb29a26bb125e8d call \
bye --foo string
func (m *MyModule) Example(ctx context.Context, foo string) string {
return dag.
Hello().
Bye(ctx, foo)
}
@function
async def example(foo: str) -> str:
return await (
dag.hello()
.bye(foo)
)
@func()
async example(foo: string): Promise<string> {
return dag
.hello()
.bye(foo)
}