always-exec
No long description provided.
Installation
dagger install github.com/charjr/DaggerAlwaysExec@9dca58179b940ef9a727278e2fc031fa59816f6b
Entrypoint
Return Type
AlwaysExec
Example
dagger -m github.com/charjr/DaggerAlwaysExec@9dca58179b940ef9a727278e2fc031fa59816f6b 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
Name | Type | Default Value | Description |
---|---|---|---|
container | Container ! | - | No description provided |
args | [String ! ] ! | - | No description provided |
skipEntrypoint | Boolean | true | No description provided |
useEntrypoint | Boolean | false | No description provided |
stdin | String | "" | No description provided |
experimentalPrivilegedNesting | Boolean | false | No description provided |
insecureRootCapabilities | Boolean | false | No description provided |
Example
dagger -m github.com/charjr/DaggerAlwaysExec@9dca58179b940ef9a727278e2fc031fa59816f6b 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)
}
stdout() 🔗
Return stdout
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
container | Container ! | - | No description provided |
Example
dagger -m github.com/charjr/DaggerAlwaysExec@9dca58179b940ef9a727278e2fc031fa59816f6b call \
stdout --container IMAGE:TAG
func (m *myModule) example(ctx context.Context, container *Container) string {
return dag.
AlwaysExec().
Stdout(ctx, container)
}
@function
async def example(container: dagger.Container) -> str:
return await (
dag.always_exec()
.stdout(container)
)
@func()
async example(container: Container): Promise<string> {
return dag
.alwaysExec()
.stdout(container)
}
stderr() 🔗
Return stderr
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
container | Container ! | - | No description provided |
Example
dagger -m github.com/charjr/DaggerAlwaysExec@9dca58179b940ef9a727278e2fc031fa59816f6b call \
stderr --container IMAGE:TAG
func (m *myModule) example(ctx context.Context, container *Container) string {
return dag.
AlwaysExec().
Stderr(ctx, container)
}
@function
async def example(container: dagger.Container) -> str:
return await (
dag.always_exec()
.stderr(container)
)
@func()
async example(container: Container): Promise<string> {
return dag
.alwaysExec()
.stderr(container)
}
lastExitCode() 🔗
Return last ignored exit code
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
container | Container ! | - | No description provided |
Example
dagger -m github.com/charjr/DaggerAlwaysExec@9dca58179b940ef9a727278e2fc031fa59816f6b 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)
}