https://github.com/ruudk/tailbox
Tailbox allows you to tail the output of another process and stream its output in a limited box.
https://github.com/ruudk/tailbox
cli go logs tail
Last synced: 9 months ago
JSON representation
Tailbox allows you to tail the output of another process and stream its output in a limited box.
- Host: GitHub
- URL: https://github.com/ruudk/tailbox
- Owner: ruudk
- License: mit
- Created: 2021-08-05T14:46:23.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-09-10T11:27:45.000Z (almost 5 years ago)
- Last Synced: 2025-10-04T06:36:04.736Z (9 months ago)
- Topics: cli, go, logs, tail
- Language: Go
- Homepage:
- Size: 64.5 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Tailbox
Tailbox allows you to tail the output of another process and stream its output in a limited box.
When the program completes, the output is discarded. When the program fails, the whole output is printed.
Tailbox can be used to integrate into other scripts and improve their output.
## Installation
```bash
brew install ruudk/tap/tailbox
```
## Usage
```
usage: tailbox [options] -- []
Options:
-failure string
Message to print when command failed
-lines int
Number of lines (default 5)
-running string
Message to print while running the command
-success string
Message to print when command finished
```
## Example
```
tailbox -success "✅ Tests passed" -failure "❌ Tests failed" -- vendor/bin/phpunit
```
## Demo
Tailbox being used in a script that iterates over every commit in a branch and performs tests on the commit.
It streams the last 5 lines of the runner. When the tests fail, the whole output is printed.
https://user-images.githubusercontent.com/104180/128398147-d09620ff-b554-48d0-bfcf-bb37df60607a.mp4