rtk-ai/rtk

feat(discover): track passthrough git/cargo/pnpm subcommands

Open

#888 创建于 2026年3月28日

在 GitHub 查看
 (1 评论) (0 反应) (0 负责人)Rust (48,085 star) (2,914 fork)batch import
effort-smallenhancementgood first issue

描述

Problem

rtk discover --all reports these commands as TOP UNHANDLED COMMANDS:

  • git checkout (493 occurrences)
  • git merge (154)
  • git rebase (137)
  • pnpm build (171)
  • pnpm exec (173)
  • cargo run (78)
  • cargo publish (71)

These commands already work via passthrough (GitCommands::Other, CargoCommands::Other, PnpmCommands::Other), but the discover regex patterns in src/discover/rules.rs don't include them. They show up as unhandled instead of "already handled via passthrough".

Fix

Add the missing subcommands to the PATTERNS regex + mark them as RtkStatus::Passthrough in subcmd_status.

Files: src/discover/rules.rs + src/discover/registry.rs (tests)

Impact

1277 commands correctly classified. Zero filtering changes, zero risk.

Status

Fixed in branch fix/discover-passthrough-coverage (PR incoming).

贡献者指南