Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zneix/haste-client
CLI utility uploading code to hastebin
https://github.com/zneix/haste-client
cli go hacktoberfest hastebin hastebin-client utility utility-application
Last synced: about 4 hours ago
JSON representation
CLI utility uploading code to hastebin
- Host: GitHub
- URL: https://github.com/zneix/haste-client
- Owner: zneix
- License: agpl-3.0
- Created: 2020-08-31T18:35:00.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-10-16T16:49:38.000Z (about 2 years ago)
- Last Synced: 2024-06-19T06:54:17.455Z (5 months ago)
- Topics: cli, go, hacktoberfest, hastebin, hastebin-client, utility, utility-application
- Language: Go
- Homepage:
- Size: 43 KB
- Stars: 12
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Haste-Client
This is a rewritten Haste-Client in Go which is meant to be a little utility that uploads code via command line from pipe or by providing names of files to upload.
Available for both Windows and Linux.# Usage
Examples:
`echo Sample Text | haste`
> https://haste.zneix.eu/nibazahidu`haste veryLongScript.js | xsel`
> *copies https://haste.zneix.eu/ibadomuvaq to clipboard*`echo "Hello World" | haste message.txt - main.cpp`
> *uploads (separetly): contents of message.txt file, standard input from echo command, contents of main.cpp file
## Arguments
`-h`
Shows Help and exits
`-v`
Shows Program version and exits
`-d string`
Changes upload destination, can be a URL another haste server (default: https://haste.zneix.eu).
`-r`
Returns a link to raw paste (text only) instead
# Easy Installation
Download binary the latest release from [releases page](https://github.com/zneix/haste-client/releases/latest).
Version without extension if for Linux, and `.exe` is for Windows.To make sure you can use this tool globally in command line, make sure to put it into your PATH Environment Variable:
[Guide for windows](https://helpdeskgeek.com/windows-10/add-windows-path-environment-variable/)
[Guide for Linux](https://helpdeskgeek.com/windows-10/add-windows-path-environment-variable/)# Installing on Windows
Download [Go 1.15](https://golang.org/doc/install?download=go1.15.windows-amd64.msi)
After installing go, open Command Line with `Win + R` and typing `cmd`.
Execute these commands:
```bash
go get github.com/zneix/haste-client
cd %userprofile%\go\bin
ren haste-client.exe haste.exe
```# Installing on Linux
Download [Go 1.15](https://golang.org/doc/install?download=go1.15.linux-amd64.tar.gz)
```bash
go get github.com/zneix/haste-client
sudo cp ~/go/bin/haste-client /usr/local/bin/haste
```Or just clone GitHub repository and build with `make`.