mirror of
https://github.com/seejohnrun/haste-client.git
synced 2025-12-12 23:05:56 +00:00
README
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
# Haste Client
|
# Haste Client
|
||||||
|
|
||||||
|
[](http://travis-ci.org/seejohnrun/haste-client)
|
||||||
|
|
||||||
haste-client is a simple client for uploading data to haste-server. All you do it pipe data in STDIN:
|
haste-client is a simple client for uploading data to haste-server. All you do it pipe data in STDIN:
|
||||||
|
|
||||||
`cat file | haste`
|
`cat file | haste`
|
||||||
@@ -54,6 +56,7 @@ You can also use `Haste` as a library to upload hastes:
|
|||||||
``` ruby
|
``` ruby
|
||||||
uploader = Haste::Uploader.new
|
uploader = Haste::Uploader.new
|
||||||
uploader.upload_raw 'this is my data' # key
|
uploader.upload_raw 'this is my data' # key
|
||||||
|
uploader.upload_path '/tmp/whaaaa' # key
|
||||||
```
|
```
|
||||||
|
|
||||||
## Windows Support
|
## Windows Support
|
||||||
|
|||||||
Reference in New Issue
Block a user