chdiff

package
v0.0.0-...-e14225d Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2024 License: Unlicense Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultDigestName  string = ".chdiff.txt"
	UserConfigFileName string = ".chdiff-config.json"
)

Variables

This section is empty.

Functions

func Chdiff

func Chdiff(
	version string,
	args []string,
	deps ChdiffDependencies)

Types

type ChdiffDependencies

type ChdiffDependencies interface {
	DigestRead(string, string) (digest.Digest, error)
	DigestWrite(digest.Digest, string) error
	DigestCalculate(string, digest.HashType) digest.Digest
	DigestCompare(digest.Digest, digest.Digest) diff.Diff
	DiffPrint(io.Writer, diff.Diff)
	Stdout() io.Writer
	Stderr() io.Writer
	KongExit() func(int)
}

type CmdCreate

type CmdCreate struct {
	Algorithm string `name:"algorithm" short:"a" help:"The checksum algorithm to use [SHA256,SHA512]." enum:"SHA256,SHA512" default:"SHA256"`
	// contains filtered or unexported fields
}

func (*CmdCreate) Run

func (cmd *CmdCreate) Run(deps ChdiffDependencies) error

type CmdVerify

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

func (*CmdVerify) Run

func (cmd *CmdVerify) Run(deps ChdiffDependencies) error

Jump to

Keyboard shortcuts

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