Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1228,8 +1228,11 @@ fn run_cli() -> Result<i32> {
};

// Warn if installed hook is outdated/missing (1/day, non-blocking).
// Skip for Gain — it shows its own inline hook warning.
if !matches!(cli.command, Commands::Gain { .. }) {
if matches!(cli.command, Commands::Init { .. }) {
// Skip for Init — it is about to install/update hooks itself.
eprintln!("[rtk] Installing RTK hook");
} else if !matches!(cli.command, Commands::Gain { .. }) {
// Skip for Gain — it shows its own inline hook warning.
hooks::hook_check::maybe_warn();
}

Expand Down