#output #copy #tool #command-line #clipboard #command-output #output-stream

app output-copy

A simple command-line output copy tool

2 releases

new 0.1.1 Nov 21, 2024
0.1.0 Nov 21, 2024

#5 in #output-stream

Download history 134/week @ 2024-11-16

134 downloads per month

MIT license

8KB

Output Copy

Welcome to Output Copy, a simple command-line copy tool.

Description

This is a simple tool that sets the clipboard to everything recieved in the input stream + echos it to the output stream. This combined with the unix pipe operator means you can effortlessly copy the output of any terminal command.

Getting Started

To build locally:

  1. Clone this repository using the following command:
#!/bin/bash
git clone https://github.com/fa993/output-copy
  1. Install the Rust Toolchain:

  2. Run this command:

#!/bin/bash
cargo install

Installation on Mac:

Pending package publish on homebrew

Installation on Linux:

Pending package publish on apt

Usage

Just pipe this tool at the end of the command whose output you want to copy

#!/bin/bash
echo "Command Output to be copied" | ocp
Command Output to be copied
# The clipboard will now contain "Command Output to be copied"

Contributing

Contributions are always welcome! If you're interested in contributing, please review our contributing guidelines.

License

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

Dependencies

~0.1–10MB
~121K SLoC