Skip to content

charjr/dagger-always-exec

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Always Exec

The primary purpose of this module is to always execute commands and return a usable Container.

It serves as an abstraction of this workaround. If this workaround proves unnecessary in the future, then this module will be obsolete.

The primary Dagger Function is exec.

Every other Dagger Function is secondary; the secondary Dagger Functions only work on Containers previously used in calls to exec.

Dagger Functions

exec

This command works similarly to a Container's with-exec. The difference is this command ignores the exit code of your command. That way no error can be thrown for unsuccessful exit codes.

It takes most of the same arguments as with-exec but you cannot redirect stdout or stderr. For that you will have to rely on stdout and stderr

last-exit-code

Returns the exit code you would have otherwise received.

stdout

Returns the stdout you would have otherwise received.

stderr

Returns the stderr you would have otherwise received.

About

Execute commands in a Dagger Container without causing an error, regardless of the exit code.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages