RainbowCLI is a simple command-line utility that applies a rainbow gradient to text input from a pipe. It reads input from stdin and prints it to stdout with colorful formatting using ANSI escape codes.
- Reads input from standard input (stdin)
- Outputs the text with a smooth rainbow color effect
- Uses ANSI escape codes for color formatting
- Works in Unix-based terminals that support 24-bit colors
Ensure you have Go installed, then run:
git clone https://github.com/yourusername/rainbowcli.git
cd rainbowcli
go build -o rainbowcliSince RainbowCLI works with pipes, you can use it as follows:
echo "Hello, World!" | ./rainbowclior with other commands:
cat file.txt | ./rainbowcliIf you try to run the command without a pipe, it will display a usage message.
When run in a terminal that supports true color, you will see a smoothly colored rainbow text output.
This project is licensed under the MIT License. See the LICENSE file for details. Contributing
Feel free to open issues or submit pull requests to improve the project.
Created by Aleksey Yakunin.
