tutor
An interactive dagger module for learning dagger.Installation
dagger install github.com/levlaz/daggerverse/tutor@afb9116665fa3665792d78978947b2c07e14543a
Entrypoint
Return Type
Tutor
Example
dagger -m github.com/levlaz/daggerverse/tutor@afb9116665fa3665792d78978947b2c07e14543a call \
func (m *myModule) example() *Tutor {
return dag.
Tutor()
}
@function
def example() -> dag.Tutor:
return (
dag.tutor()
)
@func()
example(): Tutor {
return dag
.tutor()
}
Types
Tutor 🔗
start() 🔗
Return a welcome prompt.
Return Type
String !
Example
dagger -m github.com/levlaz/daggerverse/tutor@afb9116665fa3665792d78978947b2c07e14543a call \
start
func (m *myModule) example(ctx context.Context) string {
return dag.
Tutor().
Start(ctx)
}
@function
async def example() -> str:
return await (
dag.tutor()
.start()
)
@func()
async example(): Promise<string> {
return dag
.tutor()
.start()
}
tutor() 🔗
Run through Dagger Tutor at a specific step.
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
step | String ! | - | No description provided |
Example
dagger -m github.com/levlaz/daggerverse/tutor@afb9116665fa3665792d78978947b2c07e14543a call \
tutor --step string
func (m *myModule) example(ctx context.Context, step string) string {
return dag.
Tutor().
Tutor(ctx, step)
}
@function
async def example(step: str) -> str:
return await (
dag.tutor()
.tutor(step)
)
@func()
async example(step: string): Promise<string> {
return dag
.tutor()
.tutor(step)
}