Plain haste tool that can be set to upload what's piped to it or its set to read from to an environment established upstream hastebin url.
Go to file
colin cf42e68edc Update install.sh 2025-02-28 10:51:02 -05:00
build_logs more builds 2024-05-22 23:26:51 -04:00
dist more builds 2024-05-22 23:26:51 -04:00
README.md Update README.md 2024-04-26 20:37:18 +00:00
build.sh more builds 2024-05-22 23:26:51 -04:00
go.mod haste-it 2024-04-26 16:20:28 -04:00
install.sh Update install.sh 2025-02-28 10:51:02 -05:00
main.go haste-it 2024-04-26 16:20:28 -04:00

README.md

Haste-It Installation Guide

Welcome to the installation guide for Haste-It, a tool for uploading content to a Hastebin server.

Installation

Install Haste-It by executing the following command in your terminal:

curl -sSL https://git.nixc.us/Nixius/haste-it/raw/branch/main/install.sh | sudo bash

This command fetches the install.sh script directly and runs it, handling the installation of the correct binary for your system's architecture.

Configuration

After installation, configure the environment variable for your Hastebin server by adding the following line to your shell's configuration file (e.g., .bashrc, .zshrc):

export HASTEBIN_URL="https://your-hastebin-server.com"

Replace https://your-hastebin-server.com with the actual URL of your Hastebin server.

Understood, let's adjust the "Usage" section of the README to clearly explain that the haste-it tool can accept text input not only from a file but also directly from a piped string, which enhances its flexibility for different use cases. Heres the revised "Usage" section to reflect this capability:

Usage

Once installed and configured, you can use Haste-It in several ways:

  1. From a File: To upload text from a file, simply use the command:

    haste-it [file]
    

    Replace [file] with the path to the file you want to upload.

  2. From Standard Input: If no file is specified, haste-it can read from standard input. This allows you to pipe data directly into the command. For example:

    echo "Hello, world!" | haste-it
    

    or:

    cat mytext.txt | haste-it
    

    This is useful for integrating haste-it into scripts or workflows where you want to quickly upload output from other commands.

Note

This installation is intended as a one-off setup. No updates or maintenance will be provided.