Documentation
¶
Overview ¶
Package check_version implements the ctx system check-version subcommand.
It compares the ctx binary version against the embedded plugin version and warns when the binary is older than the plugin expects.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Cmd ¶
Cmd returns the "ctx system check-version" subcommand.
Returns:
- *cobra.Command: Configured check-version subcommand
func Run ¶
Run executes the check-version hook logic.
Compares the binary version against the embedded plugin version and emits a version mismatch warning if they differ. Also, piggybacks a key rotation age check. 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.