composer
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/jasonmccallister/dagger-composer@b861a352a167433cd62550ed05759454cb18b5a0
Entrypoint
Return Type
Composer !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
version | String | "latest" | No description provided |
dir | Directory | - | No description provided |
Example
dagger -m github.com/jasonmccallister/dagger-composer@b861a352a167433cd62550ed05759454cb18b5a0 call \
func (m *myModule) example() *Composer {
return dag.
Composer()
}
@function
def example() -> dag.Composer:
return (
dag.composer()
)
@func()
example(): Composer {
return dag
.composer()
}
Types
Composer 🔗
version() 🔗
Return Type
String !
Example
dagger -m github.com/jasonmccallister/dagger-composer@b861a352a167433cd62550ed05759454cb18b5a0 call \
version
func (m *myModule) example(ctx context.Context) string {
return dag.
Composer().
Version(ctx)
}
@function
async def example() -> str:
return await (
dag.composer()
.version()
)
@func()
async example(): Promise<string> {
return dag
.composer()
.version()
}
dir() 🔗
Return Type
Directory !
Example
dagger -m github.com/jasonmccallister/dagger-composer@b861a352a167433cd62550ed05759454cb18b5a0 call \
dir
func (m *myModule) example() *Directory {
return dag.
Composer().
Dir()
}
@function
def example() -> dagger.Directory:
return (
dag.composer()
.dir()
)
@func()
example(): Directory {
return dag
.composer()
.dir()
}
install() 🔗
Takes a directory and installs composer dependencies.
Return Type
Directory !
Example
dagger -m github.com/jasonmccallister/dagger-composer@b861a352a167433cd62550ed05759454cb18b5a0 call \
install
func (m *myModule) example() *Directory {
return dag.
Composer().
Install()
}
@function
def example() -> dagger.Directory:
return (
dag.composer()
.install()
)
@func()
example(): Directory {
return dag
.composer()
.install()
}