feat: terminal UI over the shared workbench core (issue #26, phase 4)

This commit is contained in:
2026-07-14 20:33:30 +02:00
parent 3a8fafd2fd
commit a3ca44640c
14 changed files with 1701 additions and 295 deletions

View File

@@ -14,6 +14,10 @@ defmodule BDS.ServerTest do
assert Server.mode("SERVER") == :server
end
test "recognizes tui mode" do
assert Server.mode("tui") == :tui
end
test "unknown values fall back to :desktop" do
assert Server.mode("garbage") == :desktop
end
@@ -103,6 +107,11 @@ defmodule BDS.ServerTest do
end)
end
test "tui mode is the server plus a local TUI" do
assert BDS.Application.mode_children(:tui, :prod) ==
BDS.Application.mode_children(:server, :prod) ++ [{BDS.TUI, []}]
end
test "desktop mode delegates to desktop_children" do
assert BDS.Application.mode_children(:desktop, :test) ==
BDS.Application.desktop_children(:test)