Skip to main content

Module browser

Module browser 

Source
Expand description

BrowserOpener seam — open the dashboard URL in the OS browser (009, D4).

The real impl shells the OS opener via std::process::Command (cmd /c start | open | xdg-open); headless/no-opener prints the URL and skips (never an error). Tests use a no-op opener that records the URL. No new dependency (no open/webbrowser crate) — D4 / ponytail rung 4.

Structs§

NoopBrowserOpener
Test opener: records every URL it is asked to open and opens nothing, always returning BrowserOpenOutcome::Skipped. Interior mutability (RefCell) lets it record through the shared &self of BrowserOpener::open_url.
OsBrowserOpener
Real OS browser opener: shells the platform opener via std::process::Command.

Enums§

BrowserOpenOutcome
Outcome of a browser-open attempt.

Traits§

BrowserOpener
Seam for opening a URL in the operator’s browser (E6, contracts/seams.md).