cli

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: May 1, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package cli runs the speed test from a terminal with a Bubble Tea TUI.

The TUI shows an animated horizontal gauge, a live Mbps readout, and per-phase results. Pass --json to skip the TUI and write a single JSON summary instead — useful for scripts or non-tty environments.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, opts Options) error

Run executes the test. With JSON=true it prints a JSON summary; otherwise it boots the Bubble Tea UI.

Types

type Options

type Options struct {
	ServerURL string
	JSON      bool
	Duration  time.Duration
	Streams   int
}

Options configures one CLI run.

Jump to

Keyboard shortcuts

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