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
- Host: GitHub
- URL: https://github.com/d99kris/hush
- Owner: d99kris
- License: bsd-3-clause
- Created: 2017-10-15T09:43:23.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2023-01-15T08:25:00.000Z (over 2 years ago)
- Last Synced: 2025-04-13T01:44:37.703Z (6 months ago)
- Topics: command-line-tool, linux, macos, stderr, stdout
- Language: Shell
- Homepage:
- Size: 21.5 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Hush
====| **Linux** | **Mac** |
|-----------|---------|
| [](https://github.com/d99kris/hush/actions?query=workflow%3ALinux) | [](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.