]> git.giacomolli.uk - onechat/commit
Name and order the terminal client code
authorAnderson A. Giacomolli <agiacomolli@gmail.com>
Sat, 7 Nov 2026 16:34:32 +0000 (13:34 -0300)
committerAnderson A. Giacomolli <agiacomolli@gmail.com>
Sat, 7 Nov 2026 16:34:32 +0000 (13:34 -0300)
commit153f3f9b4b09d521412eacca30eddeed395c3f41
tree3857b67833722f48c6ae3e9de119b35cb7d540f2
parent6d1d9d9a7cf90b25a2e10af1c5bc56faee7e494c
Name and order the terminal client code

Every package-level name of the terminal client starts with terminal,
and its file is terminal.go, with its tests in terminal_test.go. The
client runs the command "onechat chat", but in the code the chat is the
chat of the agent, with its log, tree, and views, so the prefix names
the client by its kind.

The stop command is in stop.go and the test buffer in buffer_test.go,
because the terminal client and the Telegram bot use them both. The
declarations of the terminal files follow the order of the go-code
skill. The behavior does not change.

Issue: 947bddb
buffer_test.go [new file with mode: 0644]
daemon_test.go
main.go
stop.go [new file with mode: 0644]
telegram_test.go
terminal.go [moved from chat.go with 57% similarity]
terminal_test.go [new file with mode: 0644]