file

package
v2.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Change

type Change struct {
	Error        error         `json:"error,omitempty"`
	PrimaryPair  *Change       `json:"-"`
	TargetPath   string        `json:"-"`
	BaseDir      string        `json:"base_dir"`
	TargetDir    string        `json:"target_dir"`
	Source       string        `json:"source"`
	Target       string        `json:"target"`
	OriginalName string        `json:"-"`
	Status       status.Status `json:"status"`
	SourcePath   string        `json:"-"`
	CustomSort   struct {
		Time   time.Time
		String string
		Int    int
	} `json:"-"`
	CSVRow        []string `json:"-"`
	Position      int      `json:"-"`
	IsDir         bool     `json:"is_dir"`
	WillOverwrite bool     `json:"-"`
}

Change represents a single renaming change.

func (*Change) AutoFixTarget

func (c *Change) AutoFixTarget(newTarget string)

AutoFixTarget sets the new target name.

type Changes

type Changes []*Change

func (Changes) RenderJSON

func (c Changes) RenderJSON(w io.Writer) error

func (Changes) RenderTable

func (c Changes) RenderTable(w io.Writer, noColor bool)

Jump to

Keyboard shortcuts

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