|
|
@ -25,7 +25,7 @@ type UpFileClient struct { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// todo 后续增加安全验证
|
|
|
// todo 后续增加安全验证
|
|
|
|
|
|
// 使用方法 eg: ./scalib -h 192.168.66.92:9098 -f /www/gfs/sync_zips/BIU_20251009_153640.zip /www/afs/logs/
|
|
|
// 主入口
|
|
|
// 主入口
|
|
|
func main() { |
|
|
func main() { |
|
|
// 启用日志
|
|
|
// 启用日志
|
|
|
@ -33,7 +33,7 @@ func main() { |
|
|
defer logger.Sync() |
|
|
defer logger.Sync() |
|
|
|
|
|
|
|
|
// 使用flag解析命令行参数
|
|
|
// 使用flag解析命令行参数
|
|
|
remote := flag.String("h", "127.0.0.1:8080", "The remote server address (ip:port)") |
|
|
remote := flag.String("h", "", "The remote server address (ip:port)") |
|
|
curPath := flag.String("f", "", "The local file path to upload") |
|
|
curPath := flag.String("f", "", "The local file path to upload") |
|
|
uploadPath := flag.String("u", "", "The remote upload path") |
|
|
uploadPath := flag.String("u", "", "The remote upload path") |
|
|
flag.Parse() |
|
|
flag.Parse() |
|
|
|