Documentation
¶
Overview ¶
Package terminalbinding locates a review terminal without changing an agent's launch options.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Request ¶
type Request struct {
ID string `json:"id"`
Marker string `json:"marker"`
ExpiresAt time.Time `json:"expires_at"`
}
Request is the prepare response. Marker must be displayed verbatim before resolving ID.
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func DefaultStore ¶
func DefaultStore() *Store
func (*Store) Register ¶
Register records only a candidate; the marker is still needed to attribute a review.
func (*Store) Resolve ¶
func (s *Store) Resolve(ctx context.Context, id string, snapshot func(context.Context, Target) (string, error)) (Target, error)
Resolve prefers notifications and otherwise scans only live registrations' visible screens. It consumes the request once a destination is selected, before the caller launches its UI.
type Target ¶
type Target struct {
Kind string `json:"kind"`
Socket string `json:"socket"`
Pane string `json:"pane"`
Workspace string `json:"workspace,omitempty"`
Tab string `json:"tab,omitempty"`
}
Target identifies a pane within one multiplexer instance.
func FromEnvironment ¶
FromEnvironment is used in the real terminal, never to infer a daemon client's identity.
Click to show internal directories.
Click to hide internal directories.