diff

package
v0.0.0-...-98933e5 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDiffCommand

func NewDiffCommand() *cobra.Command

func Print

func Print(opts cli.Options, diffs []Diff)

func PrintDiff

func PrintDiff(opts cli.Options, diff Diff) error

func PrintPath

func PrintPath(diff Diff)

func Show

func Show(opts cli.Options, a string, b string) error

Types

type Change

type Change string
const (
	Modified Change = "modified"
	Created  Change = "created"
	Removed  Change = "removed"
	Renamed  Change = "renamed" // can also be modified
)

type Diff

type Diff struct {
	Change Change
	Source string // path, not pointing to ZFS snapshot
	Dest   string
	PathA  string // current path on disk, could point to /tank/.zfs/snaphot/...
	PathB  string // current path on disk, could point to /tank/.zfs/snaphot/...
}

func List

func List(opts cli.Options, a string, b string) ([]Diff, error)

Jump to

Keyboard shortcuts

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