Dagger
Search

dummy-tests

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/tedd-E/dummy-tests@4082981f710b5a0f2cdcc15a3b332ae790b9e304

Entrypoint

Return Type
DummyTests
Example
dagger -m github.com/tedd-E/dummy-tests@4082981f710b5a0f2cdcc15a3b332ae790b9e304 call \
func (m *myModule) example() *DummyTests  {
	return dag.
			DummyTests()
}
@function
def example() -> dag.DummyTests:
	return (
		dag.dummy_tests()
	)
@func()
example(): DummyTests {
	return dag
		.dummyTests()
}

Types

DummyTests 🔗

containerEcho() 🔗

Returns a container that echoes whatever string argument is provided

Return Type
String !
Arguments
NameTypeDefault ValueDescription
stringArgString "capitola"No description provided
Example
dagger -m github.com/tedd-E/dummy-tests@4082981f710b5a0f2cdcc15a3b332ae790b9e304 call \
 container-echo
func (m *myModule) example(ctx context.Context) string  {
	return dag.
			DummyTests().
			ContainerEcho(ctx)
}
@function
async def example() -> str:
	return await (
		dag.dummy_tests()
		.container_echo()
	)
@func()
async example(): Promise<string> {
	return dag
		.dummyTests()
		.containerEcho()
}

grepDir() 🔗

Returns lines that match a pattern in the files of the provided Directory

Return Type
String !
Arguments
NameTypeDefault ValueDescription
directoryArgDirectory !-No description provided
patternString !-No description provided
Example
dagger -m github.com/tedd-E/dummy-tests@4082981f710b5a0f2cdcc15a3b332ae790b9e304 call \
 grep-dir --directory-arg DIR_PATH --pattern string
func (m *myModule) example(ctx context.Context, directoryArg *Directory, pattern string) string  {
	return dag.
			DummyTests().
			GrepDir(ctx, directoryArg, pattern)
}
@function
async def example(directory_arg: dagger.Directory, pattern: str) -> str:
	return await (
		dag.dummy_tests()
		.grep_dir(directory_arg, pattern)
	)
@func()
async example(directoryArg: Directory, pattern: string): Promise<string> {
	return dag
		.dummyTests()
		.grepDir(directoryArg, pattern)
}

egg() 🔗

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
strString !-No description provided
Example
dagger -m github.com/tedd-E/dummy-tests@4082981f710b5a0f2cdcc15a3b332ae790b9e304 call \
 egg --str string
func (m *myModule) example(str string) *Container  {
	return dag.
			DummyTests().
			Egg(str)
}
@function
def example(str: str) -> dagger.Container:
	return (
		dag.dummy_tests()
		.egg(str)
	)
@func()
example(str: string): Container {
	return dag
		.dummyTests()
		.egg(str)
}

hello() 🔗

Return Type
String !
Arguments
NameTypeDefault ValueDescription
greetingString "hello"No description provided
nameString "world"Change the name
giantBoolean trueEncode the message in giant multi-character letters
shoutBoolean trueMake the message uppercase, and add more exclamation points
figletContainerContainer -Custom container for running the figlet tool
Example
dagger -m github.com/tedd-E/dummy-tests@4082981f710b5a0f2cdcc15a3b332ae790b9e304 call \
 hello
func (m *myModule) example(ctx context.Context) string  {
	return dag.
			DummyTests().
			Hello(ctx)
}
@function
async def example() -> str:
	return await (
		dag.dummy_tests()
		.hello()
	)
@func()
async example(): Promise<string> {
	return dag
		.dummyTests()
		.hello()
}