Help us shape the future of Go! Take the 2026 Go Developer Survey

preflight

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package preflight verifies the external tools Ghost shells out to.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllOK

func AllOK(rs []Result) bool

func ExecRunner

func ExecRunner(ctx context.Context, name string, args ...string) (string, error)

Types

type Result

type Result struct {
	Name   string
	OK     bool
	Detail string
	Fix    string
}

func Run

func Run(ctx context.Context, run Runner) []Result

Run checks git, gh (installed and authenticated) and claude.

type Runner

type Runner func(ctx context.Context, name string, args ...string) (string, error)

Runner executes a command and returns its trimmed combined output.

Jump to

Keyboard shortcuts

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