mirror of
https://oauth2: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@github.com/m1ngsama/TNT.git
synced 2026-06-26 05:44:38 +08:00
Refresh development module map
This commit is contained in:
parent
8affea2508
commit
f6d5765d81
2 changed files with 14 additions and 2 deletions
|
|
@ -72,6 +72,7 @@ TNT uses a multi-threaded architecture with a main accept loop and per-client th
|
||||||
```
|
```
|
||||||
src/
|
src/
|
||||||
├── main.c - CLI entry point and startup option parsing
|
├── main.c - CLI entry point and startup option parsing
|
||||||
|
├── cli_text.c - Server CLI help and option diagnostics
|
||||||
├── ssh_server.c - SSH listener setup and connection accept loop
|
├── ssh_server.c - SSH listener setup and connection accept loop
|
||||||
├── bootstrap.c - SSH authentication/session bootstrap
|
├── bootstrap.c - SSH authentication/session bootstrap
|
||||||
├── input.c - Interactive session loop and key handling
|
├── input.c - Interactive session loop and key handling
|
||||||
|
|
@ -79,6 +80,8 @@ src/
|
||||||
├── command_catalog.c - COMMAND-mode names, aliases, and help summaries
|
├── command_catalog.c - COMMAND-mode names, aliases, and help summaries
|
||||||
├── exec_catalog.c - SSH exec command matching and help metadata
|
├── exec_catalog.c - SSH exec command matching and help metadata
|
||||||
├── exec.c - SSH exec command dispatch
|
├── exec.c - SSH exec command dispatch
|
||||||
|
├── tntctl.c - Local wrapper around the SSH exec interface
|
||||||
|
├── tntctl_text.c - tntctl local help and diagnostics
|
||||||
├── chat_room.c - Chat room state, message ring, and update sequence
|
├── chat_room.c - Chat room state, message ring, and update sequence
|
||||||
├── message.c - Message persistence (RFC3339 format)
|
├── message.c - Message persistence (RFC3339 format)
|
||||||
├── message_log.c - messages.log v1 parsing and formatting
|
├── message_log.c - messages.log v1 parsing and formatting
|
||||||
|
|
@ -108,12 +111,17 @@ include/
|
||||||
├── message_log.h - messages.log v1 parser/formatter interface
|
├── message_log.h - messages.log v1 parser/formatter interface
|
||||||
├── message_log_tool.h - Offline log check/recover interface
|
├── message_log_tool.h - Offline log check/recover interface
|
||||||
├── command_catalog.h - COMMAND-mode command metadata interface
|
├── command_catalog.h - COMMAND-mode command metadata interface
|
||||||
|
├── exec_catalog.h - SSH exec command metadata interface
|
||||||
|
├── cli_text.h - Server CLI text interface
|
||||||
|
├── tntctl_text.h - tntctl text interface
|
||||||
├── history_view.h - Scroll-state helpers
|
├── history_view.h - Scroll-state helpers
|
||||||
├── tui.h - TUI rendering functions
|
├── tui.h - TUI rendering functions
|
||||||
|
├── tui_status.h - TUI status/input-line rendering interface
|
||||||
├── i18n.h - Language and shared text IDs
|
├── i18n.h - Language and shared text IDs
|
||||||
├── help_text.h - Key reference text interface
|
├── help_text.h - Key reference text interface
|
||||||
├── manual.h - Concise manual panel interface
|
├── manual.h - Concise manual panel interface
|
||||||
├── manual_text.h - Concise manual text interface
|
├── manual_text.h - Concise manual text interface
|
||||||
|
├── system_message.h - Localized system message builders
|
||||||
├── ratelimit.h - Connection limit interface
|
├── ratelimit.h - Connection limit interface
|
||||||
└── utf8.h - UTF-8 utilities
|
└── utf8.h - UTF-8 utilities
|
||||||
```
|
```
|
||||||
|
|
@ -414,6 +422,8 @@ tests/test_slow_client.sh # slow SSH reader/backpressure behavior
|
||||||
tests/unit/test_i18n.c # localized shared text
|
tests/unit/test_i18n.c # localized shared text
|
||||||
tests/unit/test_command_catalog.c # interactive command metadata
|
tests/unit/test_command_catalog.c # interactive command metadata
|
||||||
tests/unit/test_exec_catalog.c # exec command help metadata
|
tests/unit/test_exec_catalog.c # exec command help metadata
|
||||||
|
tests/unit/test_tntctl_text.c # tntctl local help/diagnostic text
|
||||||
|
tests/test_docs_help_surface.sh # active help/manual drift checks
|
||||||
```
|
```
|
||||||
|
|
||||||
### Adding a New Keybinding
|
### Adding a New Keybinding
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,8 @@
|
||||||
|
|
||||||
PASS=0
|
PASS=0
|
||||||
FAIL=0
|
FAIL=0
|
||||||
|
SCRIPT_DIR=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
|
||||||
|
REPO_ROOT=$(CDPATH= cd -- "$SCRIPT_DIR/.." && pwd)
|
||||||
|
|
||||||
pass() {
|
pass() {
|
||||||
echo "✓ $1"
|
echo "✓ $1"
|
||||||
|
|
@ -22,7 +24,7 @@ require_fixed() {
|
||||||
text="$2"
|
text="$2"
|
||||||
label="$3"
|
label="$3"
|
||||||
|
|
||||||
if grep -F -q "$text" "../$file"; then
|
if grep -F -q "$text" "$REPO_ROOT/$file"; then
|
||||||
pass "$label"
|
pass "$label"
|
||||||
else
|
else
|
||||||
fail "$label missing" "$file: $text"
|
fail "$label missing" "$file: $text"
|
||||||
|
|
@ -34,7 +36,7 @@ forbid_fixed() {
|
||||||
text="$2"
|
text="$2"
|
||||||
label="$3"
|
label="$3"
|
||||||
|
|
||||||
if grep -F -q "$text" "../$file"; then
|
if grep -F -q "$text" "$REPO_ROOT/$file"; then
|
||||||
fail "$label still mentions $text" "$file"
|
fail "$label still mentions $text" "$file"
|
||||||
else
|
else
|
||||||
pass "$label excludes $text"
|
pass "$label excludes $text"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue