Dagger
Search

Test

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 gitlab.com/eugenegrimwald/test@99784b46bd4c6022c073dec90c4fa7b258e7c8cc

Entrypoint

Return Type
Test !
Example
dagger -m gitlab.com/eugenegrimwald/test@99784b46bd4c6022c073dec90c4fa7b258e7c8cc call \
func (m *MyModule) Example() *dagger.Test  {
	return dag.
			Test()
}
@function
def example() -> dagger.Test:
	return (
		dag.test()
	)
@func()
example(): Test {
	return dag
		.test()
}

Types

Test 🔗

containerEcho() 🔗

Returns echoes whatever string argument is provided

Return Type
String !
Arguments
NameTypeDefault ValueDescription
stringArgString !"Hello World!"No description provided
versionString !"3.22.0"No description provided
Example
dagger -m gitlab.com/eugenegrimwald/test@99784b46bd4c6022c073dec90c4fa7b258e7c8cc call \
 container-echo --string-arg string --version string
func (m *MyModule) Example(ctx context.Context, stringArg string, version string) string  {
	return dag.
			Test().
			ContainerEcho(ctx, stringArg, version)
}
@function
async def example(string_arg: str, version: str) -> str:
	return await (
		dag.test()
		.container_echo(string_arg, version)
	)
@func()
async example(stringArg: string, version: string): Promise<string> {
	return dag
		.test()
		.containerEcho(stringArg, version)
}

dirList() 🔗

Return list of files a filtered directory or git repo

Return Type
String !
Arguments
NameTypeDefault ValueDescription
sourceDirectory !-Source directory
exclude[String ! ] -No description provided
versionString !"3.22.0"No description provided
Example
dagger -m gitlab.com/eugenegrimwald/test@99784b46bd4c6022c073dec90c4fa7b258e7c8cc call \
 dir-list --source DIR_PATH --version string
func (m *MyModule) Example(ctx context.Context, source *dagger.Directory, version string) string  {
	return dag.
			Test().
			DirList(ctx, source, version)
}
@function
async def example(source: dagger.Directory, version: str) -> str:
	return await (
		dag.test()
		.dir_list(source, version)
	)
@func()
async example(source: Directory, version: string): Promise<string> {
	return dag
		.test()
		.dirList(source, version)
}