https://github.com/ashish0kumar/pipe-trio
fortune, cowsay, and lolcat rewritten in go
https://github.com/ashish0kumar/pipe-trio
Last synced: about 2 months ago
JSON representation
fortune, cowsay, and lolcat rewritten in go
- Host: GitHub
- URL: https://github.com/ashish0kumar/pipe-trio
- Owner: ashish0kumar
- License: mit
- Created: 2025-02-17T18:28:03.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-07-09T14:46:17.000Z (11 months ago)
- Last Synced: 2026-02-02T06:44:33.829Z (4 months ago)
- Language: Go
- Homepage:
- Size: 623 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
pipe-trio
Collection of Go rewrites of three classic UNIX command-line
tools: fortune, cowsay, and lolcat
---
## Tools included
- [`gofortune`](./cmd/gofortune) - Generates random quotes from the fortune
database.
- [`gocowsay`](./cmd/gocowsay) - Displays messages inside a speech balloon with
ASCII figures.
- [`gololcat`](./cmd/gololcat) - Applies a colorful rainbow effect to text
output.
## Installation
```sh
go install github.com/ashish0kumar/pipe-trio/cmd/...@latest
```
or build from source:
```sh
git clone https://github.com/ashish0kumar/pipe-trio.git
cd pipe-trio
make build
```
After installation, you can add the `bin/` directory to your `PATH` for easier
access to the commands:
```sh
export PATH=$PWD/bin:$PATH
```
## Usage
Use individual commands:
```sh
gofortune
echo "Hello, world!" | gocowsay
echo "This text will be colorful!" | gololcat
```
or combine them all like god intended:
```sh
gofortune | gocowsay | gololcat
```
## Why this project
It started as a fun weekend project because, well, why not? I love these UNIX
utilities and wanted to learn how they worked by building them. Plus, it was a
great way to dive into Go and explore system-level programming while keeping it
enjoyable.
© 2025-present Ashish Kumar