app

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package app parses flags, wires the loader/aligner/inspector/printer, and orchestrates a structalign run.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Loader    common.Loader
	Aligner   common.Aligner
	Inspector common.Inspector
	Stdout    io.Writer
	Stderr    io.Writer
}

App holds the injectable dependencies and output streams.

func New

func New(stdout, stderr io.Writer) *App

New returns an App wired with the production implementations.

func (*App) Run

func (a *App) Run(args []string) int

Run parses args (excluding argv[0]) and executes. Returns the process exit code: 1 when diff-mode findings exist, 2 on usage/load error, else 0.

Jump to

Keyboard shortcuts

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