Skip to content

KurtWeston/stdout-tee

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

stdout-tee

Capture and simultaneously display and save CLI command output to multiple destinations with filtering

Features

  • Capture stdout and stderr separately or combined from piped input or wrapped commands
  • Write output to multiple files simultaneously while displaying in terminal
  • Filter output lines using regex patterns (include or exclude modes)
  • Add configurable timestamps to each line (RFC3339, Unix, relative)
  • Preserve terminal colors in display while writing clean text to files
  • Support for appending to existing files or overwriting
  • Separate file destinations for stdout vs stderr
  • Line buffering to ensure real-time output display
  • Exit with the same code as the wrapped command

How to Use

Use this project when you need to:

  • Quickly solve problems related to stdout-tee
  • Integrate go functionality into your workflow
  • Learn how go handles common patterns

Installation

# Clone the repository
git clone https://github.com/KurtWeston/stdout-tee.git
cd stdout-tee

# Install dependencies
go build

Usage

./main

Built With

  • go

Dependencies

  • github.com/spf13/cobra
  • github.com/fatih/color

Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

Capture and simultaneously display and save CLI command output to multiple destinations with filtering

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages