Documentation
¶
Overview ¶
Package browser opens URLs in whatever browser the user can actually see.
pi runs in three places that disagree about what "the browser" means: a desktop session, a remote dev container or Codespace the user reaches over SSH, and a headless CI runner. Only the first has a browser of its own, so Open works through the handoff mechanisms each environment provides and reports ErrNoHandler when there is none — letting the caller print the URL instead of failing a login that would otherwise have completed.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoHandler = errors.New("no browser handler found")
ErrNoHandler reports that the environment provides no program able to open a URL.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.