lsdiff

package
v0.9.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlignedRow

type AlignedRow struct {
	Cells   []LineCell
	Changed bool
}

type Comparison

type Comparison struct {
	Documents []Document
	Rows      []AlignedRow
}

func AlignDocuments

func AlignDocuments(documents []Document) Comparison

type Document

type Document struct {
	Target Target
	Lines  []string
	Error  string
}

func FetchDocuments

func FetchDocuments(config conf.Config, targets []Target, controlMasterOverride *bool) ([]Document, error)

type LineCell

type LineCell struct {
	LineNo  int
	Text    string
	Present bool
}

type Target

type Target struct {
	Host       string
	RemotePath string
	Title      string
}

func ParseTargetSpec

func ParseTargetSpec(value string) (Target, error)

func ResolveTargets

func ResolveTargets(config conf.Config, args []string) ([]Target, error)

type Viewer

type Viewer struct {
	// contains filtered or unexported fields
}

func NewViewer

func NewViewer(comparison Comparison) *Viewer

func (*Viewer) Run

func (v *Viewer) Run() error

Jump to

Keyboard shortcuts

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