Commit Graph

15 Commits

Author SHA1 Message Date
JiXieShi a1524a7e17 refactor: extract internal/session and eliminate I/O globals
Move serial port, trzsz filter, and pipe lifecycle into
internal/session.SerialSession. Replace 8 global I/O vars
(serialPort, trzszFilter, stdinPipe, stdoutPipe, clientIn,
clientOut, termch, termchOnce) with single sess variable.
Delete utils.go.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-23 21:49:43 +08:00
JiXieShi 31dd9da490 refactor: extract internal/config and eliminate global config var
Move Config struct to internal/config with exported fields. Replace
global var config with package-level cfg pointer. Add OpenLogFile to
config package. Add type alias Config = appconfig.Config in main
package for backward compatibility.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-23 21:45:08 +08:00
JiXieShi 2ffb86cc17 chore: remove dead code and binary files from tracking
Remove unused global var `in`, func `strout`, func `echoConsoleInput`,
func `padRight`, func `ErrorP`, and func `ErrorF`. Inline error check
in CloseSerial. Add COM.exe and coverage.out to .gitignore.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-22 02:25:23 +08:00
jixishi 2fc4b4f41a UP 多服同步 2024-06-12 14:43:43 +08:00
jixishi c841dfeae4 UP 功能建议更新 2024-06-03 20:54:23 +08:00
jixishi 82ec65958e 时间戳 文件传输 支持 2024-05-30 15:56:52 +08:00
jixishi 92c92e67e1 增加交互式配置支持 2024-04-26 22:23:32 +08:00
jixishi e3415ae05a 去除TCP服务端连接 2024-04-26 11:55:26 +08:00
jixishi d19c09e4cd TCP|UDP 客户端数据转发支持更新 帧长设置支持 2024-04-26 11:03:44 +08:00
jixishi 5bf90d1b63 TCP|UDP 客户端数据转发支持更新 2024-04-19 22:42:28 +08:00
JiXieShi 437f309ab9 多平台构建 2024-04-19 16:08:55 +08:00
JiXieShi a4004a1d05 优化项目结构 2024-04-19 15:08:00 +08:00
JiXieShi 0f2fe50b04 修复终端指令卡住的问题 2024-04-13 15:27:31 +08:00
JiXieShi 231560ae8e 增加hex收发功能 2024-04-13 14:49:25 +08:00
JiXieShi 5d4558582a Init 2024-04-12 22:14:52 +08:00