Coder Social home page Coder Social logo

inu's Introduction

inu - use dogbin from your terminal

Use dogbin/hastebin from your cli

GoDoc Go Report Card Build Status Code Coverage

Installation:

Ensure you have Go installed, and run:

deletescape@nortia:~$ go get github.com/dogbin/inu

Usage:

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 <[email protected]>

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:

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.

inu's People

Contributors

nezorflame avatar nyancrimew avatar sphericalkat avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

sphericalkat

inu's Issues

--flag privated

Have something flag as '--privated' to set not indexed in search engine?

Installation Error

I have installed Go from the official Arch Linux repos and have also tested the install from the official docs

~ >>> go get github.com/dogbin/inu                                                                                                           
# github.com/dogbin/inu
go/src/github.com/dogbin/inu/main.go:46:3: unknown field 'EnvVar' in struct literal of type cli.StringFlag
go/src/github.com/dogbin/inu/main.go:69:3: unknown field 'EnvVar' in struct literal of type cli.StringFlag
go/src/github.com/dogbin/inu/main.go:78:14: cannot use []cli.Author literal (type []cli.Author) as type []*cli.Author in assignment
go/src/github.com/dogbin/inu/main.go:88:3: cannot use serverFlag (type cli.StringFlag) as type cli.Flag in slice literal:
	cli.StringFlag does not implement cli.Flag (Apply method has pointer receiver)
go/src/github.com/dogbin/inu/main.go:89:3: cannot use slugFlag (type cli.StringFlag) as type cli.Flag in slice literal:
	cli.StringFlag does not implement cli.Flag (Apply method has pointer receiver)
go/src/github.com/dogbin/inu/main.go:90:3: cannot use fileFlag (type cli.StringFlag) as type cli.Flag in slice literal:
	cli.StringFlag does not implement cli.Flag (Apply method has pointer receiver)
go/src/github.com/dogbin/inu/main.go:91:3: cannot use jsonFlag (type cli.BoolFlag) as type cli.Flag in slice literal:
	cli.BoolFlag does not implement cli.Flag (Apply method has pointer receiver)
go/src/github.com/dogbin/inu/main.go:92:3: cannot use clipboardFlag (type cli.BoolFlag) as type cli.Flag in slice literal:
	cli.BoolFlag does not implement cli.Flag (Apply method has pointer receiver)
go/src/github.com/dogbin/inu/main.go:93:3: cannot use apiKeyFlag (type cli.StringFlag) as type cli.Flag in slice literal:
	cli.StringFlag does not implement cli.Flag (Apply method has pointer receiver)
go/src/github.com/dogbin/inu/main.go:102:5: cannot use serverFlag (type cli.StringFlag) as type cli.Flag in slice literal:
	cli.StringFlag does not implement cli.Flag (Apply method has pointer receiver)
go/src/github.com/dogbin/inu/main.go:102:5: too many errors

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.