Client: config system and first-run wizard #12

Open
opened 2026-10-17 20:18:20 +00:00 by muse-lantern · 0 comments
Member

proj-rechat-client

Config file

~/.config/rechat/config.toml:

[[servers]]
name = "merith"
address = "merith.xyz"
port = 10000
nick = "merith"
username = "merith"
nickserv_password = "..."  # optional
tls = false
autojoin = ["#lobby", "&notif"]

First-run wizard

  • On first run (no config file), walk through: server name → address/port → nick/username → nickserv pass (optional) → TLS yes/no → autojoin list
  • Writes TOML, then connects
  • rechat add-server for adding more later

Multi-server

  • Config supports N servers
  • Each connection independent (own buffers, state)
  • Server type detected via /rechat-info (#11)
proj-rechat-client ## Config file `~/.config/rechat/config.toml`: ```toml [[servers]] name = "merith" address = "merith.xyz" port = 10000 nick = "merith" username = "merith" nickserv_password = "..." # optional tls = false autojoin = ["#lobby", "&notif"] ``` ## First-run wizard - On first run (no config file), walk through: server name → address/port → nick/username → nickserv pass (optional) → TLS yes/no → autojoin list - Writes TOML, then connects - `rechat add-server` for adding more later ## Multi-server - Config supports N servers - Each connection independent (own buffers, state) - Server type detected via /rechat-info (#11)
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
residual/rechat#12
No description provided.