core: option to run client as chat relay; cli api to get, set relays (#6407)

This commit is contained in:
spaced4ndy authored and GitHub committed 2025-10-27 12:29:38 +00:00
1 parent 79bdc03529
commit 5ddc454049
14 files changed
+240 -61

No files matched your search

+7
View File
@@ -66,6 +66,7 @@ data CoreChatOpts = CoreChatOpts
logFile :: Maybe FilePath,
tbqSize :: Natural,
deviceName :: Maybe Text,
chatRelay :: Bool,
highlyAvailable :: Bool,
yesToUpMigrations :: Bool,
migrationBackupPath :: Maybe FilePath
@@ -233,6 +234,11 @@ coreChatOptsP appDir defaultDbName = do
<> metavar "DEVICE"
<> help "Device name to use in connections with remote hosts and controller"
)
chatRelay <-
switch
( long "relay"
<> help "Run as a chat relay client"
)
highlyAvailable <-
switch
( long "ha"
@@ -269,6 +275,7 @@ coreChatOptsP appDir defaultDbName = do
logFile,
tbqSize,
deviceName,
chatRelay,
highlyAvailable,
yesToUpMigrations,
migrationBackupPath