always-exec
No long description provided.
Installation
dagger install github.com/charjr/dagger-always-exec@d478c1aaf4c5290926d2d1978d98d9f0054529eb
Entrypoint
Return Type
AlwaysExec
Example
func (m *myModule) 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
func (m *myModule) 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
func (m *myModule) example(ctx context.Context, container *Container) string {
return dag.
AlwaysExec().
Stdout(ctx, container)
}
stderr() 🔗
Return stderr
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
container | Container ! | - | No description provided |
Example
func (m *myModule) example(ctx context.Context, container *Container) string {
return dag.
AlwaysExec().
Stderr(ctx, container)
}
lastExitCode() 🔗
Return last ignored exit code
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
container | Container ! | - | No description provided |
Example
func (m *myModule) example(ctx context.Context, container *Container) string {
return dag.
AlwaysExec().
LastExitCode(ctx, container)
}