Dagger
Search

always-exec

No long description provided.

Installation

dagger install github.com/charjr/DaggerAlwaysExec@6dbb5b9d74b26a8a19dc9284552dffc703e83692

Entrypoint

Return Type
AlwaysExec
Example
dagger -m github.com/charjr/DaggerAlwaysExec@6dbb5b9d74b26a8a19dc9284552dffc703e83692 call \
func (m *myModule) example() *AlwaysExec  {
	return dag.
			AlwaysExec()
}
@function
def example() -> dag.AlwaysExec:
	return (
		dag.always_exec()
	)
@func()
example(): AlwaysExec {
	return dag
		.alwaysExec()
}

Types

AlwaysExec 🔗

exec() 🔗

Execute command, ignore exit code and return Container

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
containerContainer !-No description provided
args[String ! ] !-No description provided
skipEntrypointBoolean trueNo description provided
useEntrypointBoolean falseNo description provided
stdinString ""No description provided
redirectStdoutString ""No description provided
redirectStderrString ""No description provided
experimentalPrivilegedNestingBoolean falseNo description provided
insecureRootCapabilitiesBoolean falseNo description provided
Example
dagger -m github.com/charjr/DaggerAlwaysExec@6dbb5b9d74b26a8a19dc9284552dffc703e83692 call \
 exec --container IMAGE:TAG --args string1 --args string2
func (m *myModule) example(container *Container, args []string) *Container  {
	return dag.
			AlwaysExec().
			Exec(container, args)
}
@function
def example(container: dagger.Container, args: List[str]) -> dagger.Container:
	return (
		dag.always_exec()
		.exec(container, args)
	)
@func()
example(container: Container, args: string[]): Container {
	return dag
		.alwaysExec()
		.exec(container, args)
}

lastExitCode() 🔗

Return last ignored exit code

Return Type
String !
Arguments
NameTypeDefault ValueDescription
containerContainer !-No description provided
Example
dagger -m github.com/charjr/DaggerAlwaysExec@6dbb5b9d74b26a8a19dc9284552dffc703e83692 call \
 last-exit-code --container IMAGE:TAG
func (m *myModule) example(ctx context.Context, container *Container) string  {
	return dag.
			AlwaysExec().
			LastExitCode(ctx, container)
}
@function
async def example(container: dagger.Container) -> str:
	return await (
		dag.always_exec()
		.last_exit_code(container)
	)
@func()
async example(container: Container): Promise<string> {
	return dag
		.alwaysExec()
		.lastExitCode(container)
}