haste
haste is a cross-platform hastebin CLI client.
installation
go install github.com/x6r/haste@latest
usage
$ haste # interactively prompts you for data
$ haste "text here" # uploads "text here" to hastebin and copies the returned url
$ haste -f file.go # uploads content of file.go to hastebin and copies the returned url
$ echo "text" | haste -i "https://hastebin.cc" -r # uploads "text" to a custom haste instance and copies the raw url
haste -h
for more info.
notes
default haste instance is my own, i highly recommend you use a more reliable instance such as hastebin.cc.