clihv

package
v1.3.107 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2026 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

Package clihv is the output shape of the `skywire cli hv` commands that return a value. Most of them stream — a transcript, a page's console, CDP events as they arrive — and have no single result to shape; those are listed as streaming in the JSON-contract test instead.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Input

type Input struct {
	Action string `json:"action"` // click, drag or move

	X float64 `json:"x"`
	Y float64 `json:"y"`
	// Drag only: X,Y is where the press landed and ToX,ToY where it was
	// released, after Steps intermediate moves along the straight line.
	ToX   float64 `json:"to_x,omitempty"`
	ToY   float64 `json:"to_y,omitempty"`
	Steps int     `json:"steps,omitempty"`

	RealPointerMoves int         `json:"real_pointer_moves"`
	FirstRealMove    *[2]float64 `json:"first_real_move,omitempty"`
}

Input is what one `hv input` gesture did, and whether the page saw only that. RealPointerMoves counts trusted pointer moves the page received during the gesture that this command did not send: a hand on the mouse. When it is not zero the page saw a drag no test asked for, and the outcome is not that of the scripted input alone; FirstRealMove says where it went.

func (Input) Human

func (in Input) Human(w io.Writer) error

Human writes the one line the command printed, and a second one when the real pointer interfered.

Jump to

Keyboard shortcuts

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