Crates.io | gistit |
lib.rs | gistit |
version | 0.2.3 |
source | src |
created_at | 2021-12-07 23:46:37.803385 |
updated_at | 2022-02-18 16:14:20.918712 |
description | Quick and easy code snippet sharing |
homepage | https://gistit.vercel.app/ |
repository | https://github.com/fabricio7p/gistit |
max_upload_size | |
id | 494145 |
size | 157,609 |
code
snippet sharing toolA feature packed, hash based code
snippet sharing tool focused on ease of use and simplicity.
Windows support comming soon
You can send a local file or stdin.
# Local file
$ gistit myfile.txt
# Stdin
$ ls | gistit
# Additional info
$ ls | gistit -a "Matthew McConaughey" -d "My ls, lol"
Post to GitHub Gists.
$ gistit myfile.txt --github
# A browser window will open to authorize Github OAuth.
# Hit **authorize** and wait for the CLI to resume automatically.
Copy hash to system clipboard.
$ gistit myfile.txt -c
# Hash is now on your clipboard
Fetching gistits
# Fetch and preview
$ gistit f 8765d324ddd800f1112e77fece3d3ff2
# Fetch and save to local data directory
$ gistit f 8765d324ddd800f1112e77fece3d3ff2 --save
Peer to peer file sharing is opt in. Simply install gistit-daemon
and start the background process.
# Start
$ gistit node --start
# Check network status
$ gistit node --status
# Stop
$ gistit node --stop
If gistit-daemon
is running sending and fetching gistits will be automatically done via IPFS network.
Compiled binaries
Check releases
With <my favorite package manager here>
From crates.io
cargo install gistit gistit-daemon
From source (msrv 1.58)
# Clone
$ git clone https://github.com/fabricio7p/gistit.git
# Move
$ cd gistit
# Build
$ cargo build --release
Your binary will be inside target/release
folder.
Licensed under either of MIT or Apache-2.0 at your option.