Giter Site home page Giter Site logo

haste-client's Introduction

haste client

CLI client for haste-server written in crystal based on haste-client.

GitHub release Travis GitHub license

haste is a client for uploading data to haste-server. All you have to do is pipe data into STDIN:

cat file | haste

After that, it will print the URL to STDOUT.

This can be used in combination with pbcopy, like:

  • mac osx: cat file | haste | pbcopy
  • linux: cat file | haste | xsel

after which the contents of file will be accessible at a URL which has been copied to your clipboard.

Installation

Download the executable from release page and put it in your path.

Usage

Making uploading file contents easier

If you supply a valid file path as the first argument to the client, the file will be taken as input:

# equivalent
cat file | haste
haste file

You can get the raw version

Want a URL pointing to a plain-text version instead?

cat file | haste --raw # or
haste file --raw

Contributing

  1. Fork it ( https://github.com/petoem/haste-client/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

  • petoem Michael Petö - creator, maintainer

haste-client's People

Contributors

petoem avatar

Watchers

 avatar  avatar

haste-client's Issues

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.