Skip to content

Releases: jwilges/exit-pipe

v1.0.0

07 Jan 07:19
a5757e8
Compare
Choose a tag to compare

exit-pipe 1.0.0 Release Notes

This is the first release of the exit-pipe command line interface utility. This utility executes a specified subprocess, captures its exit code, and exits with the result of piping the exit code through a conditional exit code modifier.

This release mirrors the exit-pipe 1.0.0 release on PyPI.

Feature Highlights

  • The bitfield exit code pipeline (activated via the --bitfield argument) evaluates the exit code against one or more bitfield masks and either replaces the exit code with the mapping specified by the first matching bitfield mask or passes through the unmodified exit code if no bitfield masks match.

Examples

The following examples will both exit with an exit code of 0:

exit-pipe --bitfield "3:0" -- sh -c "exit 1"
exit-pipe --bitfield "3:0" -- sh -c "exit 2"