Skip to content

Fast and simple command-line file sharing tool (WIP)

Notifications You must be signed in to change notification settings

diwasrimal/bullet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bullet

As the name, bullet is a simple and fast file sharing tool written in Go.

Build

git clone github.com/diwasrimal/bullet.git
cd bullet
go build ./cmd/bullet-server
go build ./cmd/bullet

Run

Run the server

./bullet-server

Try sending a file

$ ./bullet send large-video.mp4
Share code: df6YOFss
Sending "large-video.mp4" (104.9MB), waiting for receiver...
Sent 104857600 bytes of data!
$

And receiving somewhere else

$ ./bullet recv df6YOFss
Detected sender's file: "large-video.mp4" (104.9MB)
Received 104857600 bytes of data at "large-video.mp4".
$

You can specify the filename for receiving. Use -o - to receive directly to stdout

$ ./bullet recv -o myvideo.mp4 mXmDFGvu
Detected sender's file: "large-video.mp4" (104.9MB)
Received 104857600 bytes of data at "myvideo.mp4".
$

Share file with your own share code

$ ./bullet send -code from-diwas hello.mp4
Share code: from-diwas
Sending "hello.mp4" (104.9MB), waiting for receiver...
Sent 104857600 bytes of data!
$
$ ./bullet recv from-diwas
Detected sender's file: "hello.mp4" (104.9MB)
Received 104857600 bytes of data at "hello.mp4".
$

About

Fast and simple command-line file sharing tool (WIP)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages