https://github.com/songquanpeng/gofile-cli
[WIP] CLI for Go File.
https://github.com/songquanpeng/gofile-cli
cli go-file
Last synced: about 1 year ago
JSON representation
[WIP] CLI for Go File.
- Host: GitHub
- URL: https://github.com/songquanpeng/gofile-cli
- Owner: songquanpeng
- License: mit
- Created: 2022-09-11T07:15:59.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2023-05-05T10:12:02.000Z (about 3 years ago)
- Last Synced: 2025-03-28T17:11:13.493Z (over 1 year ago)
- Topics: cli, go-file
- Language: Go
- Homepage: https://github.com/songquanpeng/go-file
- Size: 62.5 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Go File 命令行工具
> 为 [Go File](https://github.com/songquanpeng/go-file) 制作的相关命令行工具
可在 [Release 页面](https://github.com/songquanpeng/gofile-cli/releases/latest)下载最新版本(Windows,macOS,Linux)。
## 功能
1. [WIP] 命令行文件上传。
2. P2P 文件分享。
## 截图展示
TODO
## 使用方法
[下载](https://github.com/songquanpeng/gofile-cli/releases/latest)可执行文件后,将其放到在 PATH 环境变量里的某个目录下。
```bash
# 发送方:
gofile-cli push ./path/to/file
# 服务器会返回一个 id,如下:
# 2022/09/18 21:18:30 Server response with id: 9908585559158765387
# 接收方:
gofile-cli pull 9908585559158765387
```
## 打包流程
```bash
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
```