Documentation
¶
Overview ¶
Package check_freshness implements the ctx system check-freshness subcommand.
It checks whether source files containing technology-dependent constants have been reviewed within the configured freshness window.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Cmd ¶
Cmd returns the "ctx system check-freshness" subcommand.
Returns:
- *cobra.Command: Configured check-freshness subcommand
func Run ¶
Run executes the check-freshness hook logic.
Reads tracked files from .ctxrc freshness_files config. For each file, stats it and warns if it has not been modified within the freshness window (~6 months). Files that do not exist are silently skipped. The hook is a no-op when no files are configured. Throttled to once per day.
Parameters:
- cmd: Cobra command for output
- stdin: standard input for hook JSON
Returns:
- error: Always nil (hook errors are non-fatal)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.