Crates.io | output-copy |
lib.rs | output-copy |
version | 0.1.1 |
source | src |
created_at | 2024-11-21 11:51:57.619233 |
updated_at | 2024-11-21 16:32:45.987176 |
description | A simple command-line output copy tool |
homepage | |
repository | https://github.com/fa993/output-copy |
max_upload_size | |
id | 1456060 |
size | 21,153 |
Welcome to Output Copy, a simple command-line copy tool.
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.
To build locally:
#!/bin/bash
git clone https://github.com/fa993/output-copy
Install the Rust Toolchain:
Run this command:
#!/bin/bash
cargo install
Installation on Mac:
Pending package publish on homebrew
Installation on Linux:
Pending package publish on apt
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"
Contributions are always welcome! If you're interested in contributing, please review our contributing guidelines.
This project is licensed under the MIT License - see the LICENSE.md file for details.