haste
Version, currently 0.1.45 versions
github.com/petoem/haste-client
CLI client for haste-server written in crystal
Installation
# Add this to your shard.yml
dependencies:
haste:
github: petoem/haste-client
version: ~> 0.1.4Then run:
shards installshard.yml
- Crystal
0.22.0- License
- MIT
- Author
- Michael Petö
- Target
hastefrom src/haste.cr
Dependencies
This version declares no dependencies.
README
haste client
CLI client for haste-server written in crystal based on haste-client.
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
- Fork it ( https://github.com/petoem/haste-client/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
Contributors
- petoem Michael Petö - creator, maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
0.1.4- Tagged
- Dec 14, 2018
- Commit
c54bae15dca4- Crystal
0.22.0- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/petoem/haste-client
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 17, 2026
- Synced
- Aug 17, 2026
- Versions
- 5