stodupremover

package
v0.0.0-...-df9e1a0 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Entrypoint

func Entrypoint() *cobra.Command

Types

type Actioner

type Actioner interface {
	Duplicate(Item, string) error
	NotDuplicate(Item) error
	Finish() error
}

type Item

type Item struct {
	Filename string
}

type LoggerActioner

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

func (*LoggerActioner) Duplicate

func (l *LoggerActioner) Duplicate(item Item, duplicateFilename string) error

func (*LoggerActioner) Finish

func (l *LoggerActioner) Finish() error

func (*LoggerActioner) NotDuplicate

func (l *LoggerActioner) NotDuplicate(item Item) error

type RemoveDuplicatesActioner

type RemoveDuplicatesActioner struct{}

func (*RemoveDuplicatesActioner) Duplicate

func (l *RemoveDuplicatesActioner) Duplicate(item Item, _ string) error

func (*RemoveDuplicatesActioner) Finish

func (l *RemoveDuplicatesActioner) Finish() error

func (*RemoveDuplicatesActioner) NotDuplicate

func (l *RemoveDuplicatesActioner) NotDuplicate(item Item) error

type TeeActioner

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

can be used to, fox example, log AND remove duplicates

func (*TeeActioner) Duplicate

func (t *TeeActioner) Duplicate(item Item, duplicateFilename string) error

func (*TeeActioner) Finish

func (t *TeeActioner) Finish() error

func (*TeeActioner) NotDuplicate

func (t *TeeActioner) NotDuplicate(item Item) error

Jump to

Keyboard shortcuts

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