rename

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2023 License: MIT Imports: 19 Imported by: 0

Documentation

Overview

Package rename commits the renaming operation to the filesystem and reports errors if any. It also creates a backup file for the operation and provides a way to undo any renaming operation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute(
	changes []*file.Change,
	simpleMode, quiet, revert, verbose bool,
	jsonOpts *internaljson.OutputOpts,
) []int

Execute prints the changes to be made in dry-run mode or commits the operation to the filesystem if in execute mode.

func GetErrs

func GetErrs() []int

func Undo

func Undo(
	exec, includeDir, quiet, revert, verbose bool,
	jsonOpts *internaljson.OutputOpts,
) error

Undo reverses a renaming operation according to the relevant backup file. The undo file is deleted if the operation is successfully reverted.

Types

This section is empty.

Jump to

Keyboard shortcuts

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