Wraps the background processx server process for one repository.
Printing a session never reveals its token.
Methods
gitneighbr_session$new()
Create a session. Not normally called directly; use
open_repo().
Arguments
processA live
processx::process.host, portWhere the server is bound.
tokenThe bearer token required by the API.
repo_rootThe repository root this session serves.
gitneighbr_session$browse()
Open the session, preferring the RStudio/Positron Viewer
pane (via getOption("viewer"), the same hook shiny, profvis,
and htmlwidgets use) and falling back to the default system
browser everywhere else.
gitneighbr_session$logs()
The last n lines of newly captured server output (both
stdout and stderr), for troubleshooting. Each call drains the
process's output buffer, so previously returned lines are not
repeated.
