not-working
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/marcosnils/dagger_example/not-working@b379ab835b6d95285149c1eff6ab1f8a912c8e95
Entrypoint
Return Type
NotWorking
Example
dagger -m github.com/marcosnils/dagger_example/not-working@b379ab835b6d95285149c1eff6ab1f8a912c8e95 call \
func (m *MyModule) Example() *dagger.NotWorking {
return dag.
NotWorking()
}
@function
def example() -> dagger.NotWorking:
return (
dag.not_working()
)
@func()
example(): NotWorking {
return dag
.notWorking()
}
Types
NotWorking 🔗
baseDir() 🔗
Create a base container that builds from a Dockerfile
Return Type
Directory !
Example
dagger -m github.com/marcosnils/dagger_example/not-working@b379ab835b6d95285149c1eff6ab1f8a912c8e95 call \
base-dir
func (m *MyModule) Example() *dagger.Directory {
return dag.
NotWorking().
BaseDir()
}
@function
def example() -> dagger.Directory:
return (
dag.not_working()
.base_dir()
)
@func()
example(): Directory {
return dag
.notWorking()
.baseDir()
}
sayHello() 🔗
Call a function from the other module
Return Type
[String ! ] !
Example
dagger -m github.com/marcosnils/dagger_example/not-working@b379ab835b6d95285149c1eff6ab1f8a912c8e95 call \
say-hello
func (m *MyModule) Example(ctx context.Context) []string {
return dag.
NotWorking().
SayHello(ctx)
}
@function
async def example() -> List[str]:
return await (
dag.not_working()
.say_hello()
)
@func()
async example(): Promise<string[]> {
return dag
.notWorking()
.sayHello()
}