Skip to content

songquanpeng/gofile-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go File 命令行工具

Go File 制作的相关命令行工具

license release release

可在 Release 页面下载最新版本(Windows,macOS,Linux)。

功能

  1. [WIP] 命令行文件上传。
  2. P2P 文件分享。

截图展示

TODO

使用方法

下载可执行文件后,将其放到在 PATH 环境变量里的某个目录下。

# 发送方:
gofile-cli push ./path/to/file
# 服务器会返回一个 id,如下:
# 2022/09/18 21:18:30 Server response with id: 9908585559158765387

# 接收方:
gofile-cli pull 9908585559158765387

打包流程

git clone https://github.com/songquanpeng/gofile-cli
cd gofile-cli
go mod download
go build -ldflags "-s -w -extldflags '-static'" -o gofile-cli.exe