https://github.com/dogbin/inu
Easily use dogbin from your terminal
https://github.com/dogbin/inu
cli dogbin go hastebin pastebin
Last synced: 3 months ago
JSON representation
Easily use dogbin from your terminal
- Host: GitHub
- URL: https://github.com/dogbin/inu
- Owner: dogbin
- License: mit
- Created: 2019-10-17T22:44:16.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-11-21T09:13:36.000Z (over 5 years ago)
- Last Synced: 2025-08-14T09:56:38.891Z (9 months ago)
- Topics: cli, dogbin, go, hastebin, pastebin
- Language: Go
- Homepage:
- Size: 32.2 KB
- Stars: 26
- Watchers: 1
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
- awesome-starred - dogbin/inu - Easily use dogbin from your terminal (go)
README
# inu - use dogbin from your terminal
> Use dogbin/hastebin from your cli
[](https://godoc.org/github.com/dogbin/inu/dogbin)
[](https://goreportcard.com/report/github.com/dogbin/inu)
[](https://travis-ci.com/dogbin/inu)
[](https://codecov.io/gh/dogbin/inu/)
## Installation:
Ensure you have [Go](https://golang.org) installed, and run:
```bash
deletescape@nortia:~$ go get github.com/dogbin/inu
```
## Usage:
```bash
deletescape@nortia:~$ inu help
NAME:
inu - Use dogbin/hastebin right from your terminal
USAGE:
inu [global options] command [command options] [arguments...]
VERSION:
0.1.0
AUTHOR:
Till Kottmann
COMMANDS:
put, up, p, u, Create a new paste
get, show, s Obtains the contents of a paste
help, h Shows a list of commands or help for one command
GLOBAL OPTIONS:
--server value, -r value The dogbin/hastebin server to use (default: "del.dog") [%DOGBIN_SERVER%] [~/.inu/server]
--slug value, -s value The slug to use instead of the server generated one [haste doesn't support this]
--file value, -f value A file to upload to dogbin
--json, -j Outputs the result as JSON
--copy, -c Additionally puts the created URL in your clipboard
--help, -h show help
--version, -v print the version
COPYRIGHT:
(c) 2019 Till Kottmann
```
You can also simply pipe into the `inu` command like this:
```bash
deletescape@nortia:~$ echo "Awesome test for README" | inu
https://del.dog/nodabaqisa
```
## Library use
To access dogbin in your Go app you can import the `github.com/dogbin/inu/dogbin` package. For now use this cli as a reference until a proper godoc exists.