rename

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: 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 Rename added in v1.9.1

func Rename(
	conf *config.Config,
	fileChanges []*file.Change,
) error

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

func Undo

func Undo(conf *config.Config) 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