ci
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/llorenzinho/dagger-package-repository@b9052294d52b239c940d7c59f86b72cd45a056b5Entrypoint
Return Type
Ci Example
dagger -m github.com/llorenzinho/dagger-package-repository@b9052294d52b239c940d7c59f86b72cd45a056b5 call \
func (m *MyModule) Example() *dagger.Ci {
return dag.
Ci()
}@function
def example() -> dagger.Ci:
return (
dag.ci()
)@func()
example(): Ci {
return dag
.ci()
}Types
Ci 🔗
buildDocker() 🔗
Return Type
Container !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| dir | Directory ! | - | No description provided |
Example
dagger -m github.com/llorenzinho/dagger-package-repository@b9052294d52b239c940d7c59f86b72cd45a056b5 call \
build-docker --dir DIR_PATHfunc (m *MyModule) Example(dir *dagger.Directory) *dagger.Container {
return dag.
Ci().
BuildDocker(dir)
}@function
def example(dir: dagger.Directory) -> dagger.Container:
return (
dag.ci()
.build_docker(dir)
)@func()
example(dir: Directory): Container {
return dag
.ci()
.buildDocker(dir)
}echo() 🔗
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| msg | String ! | - | No description provided |
Example
dagger -m github.com/llorenzinho/dagger-package-repository@b9052294d52b239c940d7c59f86b72cd45a056b5 call \
echo --msg stringfunc (m *MyModule) Example(ctx context.Context, msg string) string {
return dag.
Ci().
Echo(ctx, msg)
}@function
async def example(msg: str) -> str:
return await (
dag.ci()
.echo(msg)
)@func()
async example(msg: string): Promise<string> {
return dag
.ci()
.echo(msg)
}