Documentation
¶
Overview ¶
Package browser opens a URL in the user's browser.
Hand-rolled rather than taken from a library, for two reasons: the popular one leaks the launcher's stderr into the terminal, which lands in the middle of a login prompt, and detecting a headless machine matters more here than the launch itself. Roughly thirty lines is a fair trade.
The policy decisions — is a browser plausible, which command opens a URL — are pure functions of an OS name and an environment lookup. Reading the real process environment happens only in the two exported wrappers, so the policy can be asserted on any machine instead of only on the one running the test.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.