dagger-tools
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/svallebro/dagger-tools@aca15a14364a3f41f08647ca06a4219ad50b9f60
Entrypoint
Return Type
DaggerTools
Example
dagger -m github.com/svallebro/dagger-tools@aca15a14364a3f41f08647ca06a4219ad50b9f60 call \
func (m *myModule) example() *DaggerTools {
return dag.
DaggerTools()
}
@function
def example() -> dag.DaggerTools:
return (
dag.dagger_tools()
)
@func()
example(): DaggerTools {
return dag
.daggerTools()
}
Types
DaggerTools 🔗
update() 🔗
Return Type
File !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
version | String ! | - | No description provided |
Example
dagger -m github.com/svallebro/dagger-tools@aca15a14364a3f41f08647ca06a4219ad50b9f60 call \
update --version string
func (m *myModule) example(version string) *File {
return dag.
DaggerTools().
Update(version)
}
@function
def example(version: str) -> dagger.File:
return (
dag.dagger_tools()
.update(version)
)
@func()
example(version: string): File {
return dag
.daggerTools()
.update(version)
}