cli

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package cli parses flags, orchestrates concurrent STUN probes, and emits the final report. Run returns an exit code per docs/design.md: 0 = P2P-friendly, 1 = P2P-hostile, 2 = probe or flag error.

Index

Constants

This section is empty.

Variables

View Source
var Version = "dev"

Version is the natcheck version string. main.go sets this at startup from its ldflags-injected variable.

Functions

func Run

func Run(ctx context.Context, args []string, out, errOut io.Writer) int

Run parses args, probes, classifies, renders, and returns an exit code.

Types

This section is empty.

Jump to

Keyboard shortcuts

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