feat: issue #25 implemented - cli
This commit is contained in:
@@ -12,6 +12,11 @@ defmodule BDS.Application do
|
||||
[{BDS.Desktop.Server, []}, BDS.CliSync.Watcher, BDS.Server]
|
||||
end
|
||||
|
||||
# CLI mode (issue #25): a one-shot command run against the shared database.
|
||||
# No HTTP listener, SSH daemon, window, or sync watcher — the CLI is the
|
||||
# external writer the watcher in a concurrently running app listens for.
|
||||
def mode_children(:cli, _env), do: []
|
||||
|
||||
# Local TUI: the headless server plus a TUI on the launching terminal, so
|
||||
# a GUI (via tunnel) and the local terminal can work in parallel. Quitting
|
||||
# this TUI stops the whole VM — the terminal is the app in this mode.
|
||||
|
||||
Reference in New Issue
Block a user