The chat command surface is a switch with its usage text beside it #2057

Open
opened 2026-11-18 23:10:30 +00:00 by sam · 0 comments
Owner

The chat command surface is a switch: 32 commands in internal/gateway/gateway.go, usage strings beside the handlers (e.g. internal/gateway/session_delete.go), the help line assembled in the same file, and a separate privilege list in internal/gateway/slash_access.go.

A command's name, usage, privilege and handler live in three places, and the help text the operator reads is built from whichever list the last change happened to update.

Done when: one declaration gives each command its name, usage, privilege and handler, and the help text is rendered from it.

The chat command surface is a switch: 32 commands in internal/gateway/gateway.go, usage strings beside the handlers (e.g. internal/gateway/session_delete.go), the help line assembled in the same file, and a separate privilege list in internal/gateway/slash_access.go. A command's name, usage, privilege and handler live in three places, and the help text the operator reads is built from whichever list the last change happened to update. Done when: one declaration gives each command its name, usage, privilege and handler, and the help text is rendered from it.
sam added the chorelow labels 2026-11-18 23:10:30 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sam/archie#2057