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: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package snapshot implements the ctx permission snapshot subcommand.
It captures a point-in-time snapshot of file permissions for later
restoration.
Cmd returns the "ctx permission snapshot" subcommand.
Returns:
- *cobra.Command: Configured snapshot subcommand
Run saves settings.local.json as the golden image.
Parameters:
- cmd: Cobra command for output
Returns:
- error: Non-nil on read/write failure or missing settings file
Source Files
¶
Click to show internal directories.
Click to hide internal directories.