Skip to main content

Suppress command output on success

Project description

pyronic

Run a program and silence its output, unless it fails.

Usage

usage: pyronic [-h] [-V] [-v] [-s] ...

positional arguments:
  command

optional arguments:
  -h, --help      show this help message and exit
  -V, --version   show program's version number and exit
  -v, --verbose   Include additional output on failure
  -s, --separate  Separate stdout/stderr rather than combining

Background

pyronic is a replacement for chronic.

One key difference is that pyronic, in its default mode, will preserve the relative order of the lines written by program to stdout and stderr. Some programs aren't consistent in printing to stdout or stderr, and this order can make errors much eaiser to comprehend.

$ chronic ./test/interleave
1 stdout
2 stdout
4 stdout
7 stdout
9 stdout
3 stderr
5 stderr
6 stderr
8 stderr

$ pyronic ./test/interleave
1 stdout
2 stdout
3 stderr
4 stdout
5 stderr
6 stderr
7 stdout
8 stderr
9 stdout

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyronic-0.1.1.tar.gz (2.5 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page