core: output messages and events while executing the CLI command passed via -e option (#3683)

* core: output messages and events while executing the CLI command passed via -e option

* option

* add option
This commit is contained in:
Evgeny Poberezkin
2024-01-20 14:59:13 +00:00
committed by GitHub
parent 5aa4b7687e
commit c65a17fccb
6 changed files with 54 additions and 19 deletions
@@ -10,7 +10,7 @@ import Data.Maybe (fromMaybe)
import Options.Applicative
import Simplex.Chat.Bot.KnownContacts
import Simplex.Chat.Controller (updateStr, versionNumber, versionString)
import Simplex.Chat.Options (ChatOpts (..), CoreChatOpts, coreChatOptsP)
import Simplex.Chat.Options (ChatCmdLog (..), ChatOpts (..), CoreChatOpts, coreChatOptsP)
data BroadcastBotOpts = BroadcastBotOpts
{ coreOptions :: CoreChatOpts,
@@ -77,6 +77,7 @@ mkChatOpts BroadcastBotOpts {coreOptions} =
deviceName = Nothing,
chatCmd = "",
chatCmdDelay = 3,
chatCmdLog = CCLNone,
chatServerPort = Nothing,
optFilesFolder = Nothing,
showReactions = False,