backup

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package backup creates timestamped backups of files before overwriting them during initialization.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func File

func File(cmd *cobra.Command, filename string, content []byte) error

File creates a timestamped .bak copy and reports it.

Parameters:

  • cmd: Cobra command for output
  • filename: Original file path
  • content: Content to back up

Returns:

  • error: Non-nil if the backup write fails

Types

This section is empty.

Jump to

Keyboard shortcuts

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