package
Version:
v0.8.0
Opens a new window with list of versions in this module.
Published: Mar 24, 2026
License: Apache-2.0
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package backup creates timestamped backups of files before overwriting
them during initialization.
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
Source Files
¶
Click to show internal directories.
Click to hide internal directories.