- Go:
- Gin (http server) π
- Cobra (CLI command framework) π
- External :
- Ngrok (secure tunnels) π
-
π₯ Client
- Send Files to another computer using command line
-
π» Server
- Listen for files from other computers across the internet using Ngrok secure tunnels
-
π On every subcommand there is -h flag to show description of all commands
-
Set authtoken if u haven't use ngrok
$ ngrok authtoken <authtoken>
(run it on project folder) -
Run CLI from Go
$ go run . <Commands>
- Run CLI from file
$ FileTransfer <Commands>
(If u did the build)
- Run CLI from file
$ ./FileTransfer <Commands>
(If u did the build)
$ go build
(on project directory)
To see all commands run :
From Go $ go run .
$ FileTransfer
$ ./FileTransfer