Exit-pipe

Latest version: v1.0.0

Safety actively analyzes 619647 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

1.0.0

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](https://pypi.org/project/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"

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.