Dagger
Search

launchpad

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/nicklasfrahm/launchpad@c5068821c419fdda288c44bcdf8b5af3c328a8cb

Entrypoint

Return Type
Launchpad !
Arguments
NameTypeDescription
sourceDirectory !No description provided
Example
dagger -m github.com/nicklasfrahm/launchpad@c5068821c419fdda288c44bcdf8b5af3c328a8cb call \
 --source DIR_PATH
func (m *myModule) example(source *Directory) *Launchpad  {
	return dag.
			Launchpad(source)
}
@function
def example(source: dagger.Directory) -> dag.Launchpad:
	return (
		dag.launchpad(source)
	)
@func()
example(source: Directory): Launchpad {
	return dag
		.launchpad(source)
}

Types

Launchpad 🔗

Launchpad is the entrypoint for the entire pipeline.

source() 🔗

Source contains the source code to be processed.

Return Type
Directory !
Example
dagger -m github.com/nicklasfrahm/launchpad@c5068821c419fdda288c44bcdf8b5af3c328a8cb call \
 --source DIR_PATH source
func (m *myModule) example(source *Directory) *Directory  {
	return dag.
			Launchpad(source).
			Source()
}
@function
def example(source: dagger.Directory) -> dagger.Directory:
	return (
		dag.launchpad(source)
		.source()
	)
@func()
example(source: Directory): Directory {
	return dag
		.launchpad(source)
		.source()
}

sourceVersion() 🔗

Returns the version that has been detected in the provided source code.

Return Type
String !
Example
dagger -m github.com/nicklasfrahm/launchpad@c5068821c419fdda288c44bcdf8b5af3c328a8cb call \
 --source DIR_PATH source-version
func (m *myModule) example(ctx context.Context, source *Directory) string  {
	return dag.
			Launchpad(source).
			SourceVersion(ctx)
}
@function
async def example(source: dagger.Directory) -> str:
	return await (
		dag.launchpad(source)
		.source_version()
	)
@func()
async example(source: Directory): Promise<string> {
	return dag
		.launchpad(source)
		.sourceVersion()
}