preflight

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2026 License: MIT Imports: 3 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 preflight detects the OS and verifies the SSH tooling doctor needs. The implementation this replaced also gated on a minimum interpreter version; the Go binary is self-contained, so that check becomes a runtime note and the actionable part - the hard/optional binary scan - is unchanged.

Index

Constants

This section is empty.

Variables

View Source
var (
	HardBins     = hardBins()
	OptionalBins = optionalBins()
)

HardBins must be present; OptionalBins degrade gracefully.

ssh-copy-id is hard on Unix and optional on Windows: Microsoft's OpenSSH port does not ship it, so requiring it there made preflight fail - and doctor with it - on every stock Windows machine, for a tool the generic ssh provider only uses as one deployment path among several. It is still listed there, so a user who has it installed keeps the better path and one who does not is told what they are missing rather than that their install is broken.

Functions

func Format

func Format(r Report) string

Format renders the human-readable preflight block.

Types

type Report

type Report struct {
	OSName          string
	RuntimeOK       bool // a built Go binary carries its runtime; always true
	OSFirstClass    bool
	MissingHard     []string
	MissingOptional []string
}

Report is the preflight result.

func Check

func Check() Report

Check runs the preflight scan over the current PATH.

func (Report) OK

func (r Report) OK() bool

OK is true when the runtime is fine and no hard dep is missing.

Jump to

Keyboard shortcuts

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