link

package
v0.0.0-...-60f5ded Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 25, 2026 License: MIT Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package link connects a view to the machine's Physa engine through Physa's public client, starting the engine with the physa CLI when it is not running, and names the repo a view shows.

Index

Constants

This section is empty.

Variables

View Source
var ErrNoPhysa = errors.New("Physa's engine isn't running, and the physa command isn't on PATH to start it")

ErrNoPhysa is returned when no engine answers and the physa CLI is not on PATH to start one.

Functions

func Connect

func Connect(ctx context.Context) (*client.Client, error)

Connect returns a client connected to the engine. When none answers it runs `physa engine start` once and tries again.

func Repo

func Repo() (string, error)

Repo is the repo a view shows: the directory it was opened in. The engine finds the repo from any directory inside it.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL