report

package
v2.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package report provides details about the renaming operation in table or json format

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BackupFailed

func BackupFailed(err error)

func BackupFileRemovalFailed

func BackupFileRemovalFailed(err error)

func DefaultOpt

func DefaultOpt(opt, val string)

func ExitWithErr

func ExitWithErr(err error)

func NoMatches

func NoMatches(conf *config.Config)

NoMatches prints out a message indicating that the find string failed to match any files.

func NonExistentFile

func NonExistentFile(name string, row int)

func PrintResults

func PrintResults(conf *config.Config, fileChanges file.Changes, err error)

PrintResults prints the results of a renaming operation, including any errors encountered. It displays successful renames to stderr if verbose mode is enabled, and prints renamed paths to stdout if output is piped. Errors are always printed to stderr.

func Report

func Report(
	conf *config.Config,
	fileChanges file.Changes,
	conflictDetected bool,
)

Report prints a report of the renaming changes to be made.

func SearchEvalFailed added in v2.2.0

func SearchEvalFailed(path, target string, err error)

func ShortHelp

func ShortHelp(helpText string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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