Dagger
Search

dagger-java

No long description provided.

Installation

dagger install github.com/devetest7733/dag-demos@e5f97f518655b14f67d2026ee1168e8a22c7837b

Entrypoint

Return Type
DaggerJava !
Example
dagger -m github.com/devetest7733/dag-demos@e5f97f518655b14f67d2026ee1168e8a22c7837b call \
func (m *myModule) example() *DaggerJava  {
	return dag.
			DaggerJava()
}
@function
def example() -> dag.DaggerJava:
	return (
		dag.dagger_java()
	)
@func()
example(): DaggerJava {
	return dag
		.daggerJava()
}

Types

DaggerJava 🔗

containerEcho() 🔗

Returns a container that echoes whatever string argument is provided

Return Type
String !
Arguments
NameTypeDefault ValueDescription
stringArgString !-No description provided
Example
dagger -m github.com/devetest7733/dag-demos@e5f97f518655b14f67d2026ee1168e8a22c7837b call \
 container-echo --string-arg string
func (m *myModule) example(ctx context.Context, stringArg string) string  {
	return dag.
			DaggerJava().
			ContainerEcho(ctx, stringArg)
}
@function
async def example(string_arg: str) -> str:
	return await (
		dag.dagger_java()
		.container_echo(string_arg)
	)
@func()
async example(stringArg: string): Promise<string> {
	return dag
		.daggerJava()
		.containerEcho(stringArg)
}

grepDir() 🔗

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

Return Type
String !
Arguments
NameTypeDefault ValueDescription
directoryArgDirectory !-A directory.
patternString !-No description provided
Example
dagger -m github.com/devetest7733/dag-demos@e5f97f518655b14f67d2026ee1168e8a22c7837b call \
 grep-dir --directory-arg DIR_PATH --pattern string
func (m *myModule) example(ctx context.Context, directoryArg *Directory, pattern string) string  {
	return dag.
			DaggerJava().
			GrepDir(ctx, directoryArg, pattern)
}
@function
async def example(directory_arg: dagger.Directory, pattern: str) -> str:
	return await (
		dag.dagger_java()
		.grep_dir(directory_arg, pattern)
	)
@func()
async example(directoryArg: Directory, pattern: string): Promise<string> {
	return dag
		.daggerJava()
		.grepDir(directoryArg, pattern)
}