timoni
This module has been generated via dagger init and serves as a reference to basic 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/anthonybrice/daggerverse/timoni@3ea75f3fe65e0ca40d8d540be91b99ca064be783Entrypoint
Return Type
Timoni Example
dagger -m github.com/anthonybrice/daggerverse/timoni@3ea75f3fe65e0ca40d8d540be91b99ca064be783 call \
func (m *MyModule) Example() *dagger.Timoni {
return dag.
Timoni()
}@function
def example() -> dagger.Timoni:
return (
dag.timoni()
)@func()
example(): Timoni {
return dag
.timoni()
}Types
Timoni 🔗
vet() 🔗
timoni mod vet dir
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| dir | Directory ! | - | No description provided |
| args | [String ! ] | - | No description provided |
Example
dagger -m github.com/anthonybrice/daggerverse/timoni@3ea75f3fe65e0ca40d8d540be91b99ca064be783 call \
vet --dir DIR_PATHfunc (m *MyModule) Example(ctx context.Context, dir *dagger.Directory) string {
return dag.
Timoni().
Vet(ctx, dir)
}@function
async def example(dir: dagger.Directory) -> str:
return await (
dag.timoni()
.vet(dir)
)@func()
async example(dir: Directory): Promise<string> {
return dag
.timoni()
.vet(dir)
}modPush() 🔗
timoni mod push dir url –version=version args...
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| dir | Directory ! | - | No description provided |
| url | String ! | - | No description provided |
| version | String ! | - | No description provided |
| args | [String ! ] | - | No description provided |
Example
dagger -m github.com/anthonybrice/daggerverse/timoni@3ea75f3fe65e0ca40d8d540be91b99ca064be783 call \
mod-push --dir DIR_PATH --url string --version stringfunc (m *MyModule) Example(ctx context.Context, dir *dagger.Directory, url string, version string) string {
return dag.
Timoni().
ModPush(ctx, dir, url, version)
}@function
async def example(dir: dagger.Directory, url: str, version: str) -> str:
return await (
dag.timoni()
.mod_push(dir, url, version)
)@func()
async example(dir: Directory, url: string, version: string): Promise<string> {
return dag
.timoni()
.modPush(dir, url, version)
}cli() 🔗
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| args | [String ! ] ! | - | args to pass to timoni |
Example
dagger -m github.com/anthonybrice/daggerverse/timoni@3ea75f3fe65e0ca40d8d540be91b99ca064be783 call \
cli --args string1 --args string2func (m *MyModule) Example(ctx context.Context, args []string) string {
return dag.
Timoni().
Cli(ctx, args)
}@function
async def example(args: List[str]) -> str:
return await (
dag.timoni()
.cli(args)
)@func()
async example(args: string[]): Promise<string> {
return dag
.timoni()
.cli(args)
}