BBS:      TELESC.NET.BR
Assunto:  src/syncterm/Wren.adoc src/syncterm/scripts/auto/connected/console.wre
De:       Deuc¨
Data:     Tue, 28 Apr 2026 09:22:53 -0700
-----------------------------------------------------------
https://gitlab.synchro.net/main/sbbs/-/commit/cf86f51e84049319c38da7a8
Modified Files:
	src/syncterm/Wren.adoc src/syncterm/scripts/auto/connected/console.wren src/syncterm/scripts/wrentest.wren
Log Message:
SyncTERM: WrenConsole.register for module-defined REPL commands

Modules can plug in their own / entries via
WrenConsole.register(name, help, fn).  The handler runs with the raw
argument string (everything after the first separating space, or ""
if none) inside a Fiber so a runtime abort surfaces as a logged
error rather than tearing the console out from under itself.
Re-registering a name overwrites; names can't contain spaces.

/? now lists registered commands as continuation lines under the
built-in "commands:" row, each annotated with the help text.
WrenConsole.unregister(name) drops a registration (idempotent);
WrenConsole.commands returns the sorted list of currently-registered
names for tests + tooling.

Co-Authored-By: Claude Opus 4.7 (1M context) 
n
---
  mSynchronetn  hgVertrauen n hHome of Synchronet n gh[vert/cvs/bbs].synchro.net

-----------------------------------------------------------
[Voltar]