Dagger
Search

composer

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/jasonmccallister/dagger-composer@5883d3ae36c7acebac550deb0a854e75e9cfb59b

Entrypoint

Return Type
Composer !
Arguments
NameTypeDefault ValueDescription
versionString "latest"No description provided
Example
dagger -m github.com/jasonmccallister/dagger-composer@5883d3ae36c7acebac550deb0a854e75e9cfb59b 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@5883d3ae36c7acebac550deb0a854e75e9cfb59b 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()
}

install() 🔗

Takes a directory and installs composer dependencies.

Return Type
Directory !
Arguments
NameTypeDefault ValueDescription
dirDirectory -No description provided
args[String ! ] ["--prefer-dist", "--optimize-autoloader", "--ignore-platform-reqs"]No description provided
Example
dagger -m github.com/jasonmccallister/dagger-composer@5883d3ae36c7acebac550deb0a854e75e9cfb59b 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()
}