An open API service indexing awesome lists of open source software.

https://github.com/d99kris/hush

Suppress stdout for commands executed successfully on Linux and macOS
https://github.com/d99kris/hush

command-line-tool linux macos stderr stdout

Last synced: 3 months ago
JSON representation

Suppress stdout for commands executed successfully on Linux and macOS

Awesome Lists containing this project

README

          

Hush
====

| **Linux** | **Mac** |
|-----------|---------|
| [![Linux](https://github.com/d99kris/hush/workflows/Linux/badge.svg)](https://github.com/d99kris/hush/actions?query=workflow%3ALinux) | [![macOS](https://github.com/d99kris/hush/workflows/macOS/badge.svg)](https://github.com/d99kris/hush/actions?query=workflow%3AmacOS) |

Hush suppresses stdout for commands executed successfully. It executes
specified program and shows its output only after the program has exited.
If the exit status is zero, only stderr from the program is outputted.
If the exit status is non-zero both stderr and stdout are outputted.

Example Usage
=============

$ hush make

Supported Platforms
===================
Hush should work on Linux and macOS.

Installation
============
Pre-requisites (Ubuntu):

sudo apt install git cmake build-essential

Download the source code:

git clone https://github.com/d99kris/hush && cd hush

Generate Makefile and build:

mkdir -p build && cd build && cmake .. && make -s

Optionally run tests:

ctest --output-on-failure

Optionally install in system:

sudo make install

Usage
=====

General usage syntax:

hush PROG [ARGS..]

Technical Details
=================
Hush executes specified program using faketty (preserving color output) and
captures stdout, stderr and a combination of them both. Depending on process
exit status, the appropriate output is propagated to the user / shell.

License
=======
Hush is distributed under the BSD 3-Clause license. See LICENSE file.

Keywords
========
hush, linux, macos, os x, silenced execution, suppressing stdout upon successful exit status.