report

package
v1.9.1 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2023 License: MIT Imports: 13 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

View Source
var (
	Stdout io.Writer = os.Stdout
	Stderr io.Writer = os.Stderr
)

Functions

func BackupFailed

func BackupFailed(err error)

func Conflicts

func Conflicts(conflicts conflict.Collection, jsonOut bool)

Conflicts prints any detected conflicts to the standard output in table format.

func Interactive added in v1.9.1

func Interactive(
	fileChanges []*file.Change,
)

Interactive prints the changes to be made and prompts the user to commit the changes. Blocks unti user types ENTER.

func JSON added in v1.9.1

func JSON(
	fileChanges []*file.Change,
)

JSON displays the renaming changes to be made in JSON format.

func NoMatches

func NoMatches(jsonOut bool)

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

func NonInteractive added in v1.9.1

func NonInteractive(
	fileChanges []*file.Change,
)

NonInteractive prints a report of the renaming changes to be made without prompting the user.

Types

This section is empty.

Jump to

Keyboard shortcuts

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