mirror of
https://github.com/jixishi/SerialTerminalForWindowsTerminal.git
synced 2026-11-12 08:12:23 +00:00
refactor: split termapp into proper internal packages
Replace monolithic internal/termapp with proper separation: - internal/app: App struct, lifecycle, output loops - internal/command: CommandHost interface, Dispatcher, handlers - internal/tui: Model, hotkeys, panels, render (with panelError + border fixes) - internal/console: RunConsole, escape parsing, entry point logic - cmd/serialterminal: thin main() calling console.Run() Eliminate global vars (cfg, sess, out) via dependency injection. Break App->CommandDispatcher cycle via CommandHost interface. Co-Authored-By: Claude Opus 4.7 <[email protected]>
This commit is contained in:
1 parent
daad844d4f
commit
d8fc9d7374
22 files changed
+859
-2080
No files matched your search
@@ -1,7 +1,15 @@
|
||||
package main
|
||||
|
||||
import "github.com/jixishi/SerialTerminalForWindowsTerminal/internal/termapp"
|
||||
import (
|
||||
"log"
|
||||
|
||||
"github.com/jixishi/SerialTerminalForWindowsTerminal/internal/console"
|
||||
)
|
||||
|
||||
func init() {
|
||||
log.SetFlags(log.Ldate | log.Ltime | log.Lshortfile | log.Lmsgprefix)
|
||||
}
|
||||
|
||||
func main() {
|
||||
termapp.Run()
|
||||
console.Run()
|
||||
}
|
||||
Reference in new issue
Block a user