rtk-ai/rtk

Add whitelist mode for command filtering

Open

#2,231 建立於 2026年6月3日

在 GitHub 查看
 (3 留言) (0 反應) (0 負責人)Rust (2,914 fork)batch import
area:configenhancementhelp wantedpriority:medium

倉庫指標

Star
 (48,085 star)
PR 合併指標
 (平均合併 8天 17小時) (30 天內合併 49 個 PR)

描述

Feature Request: Whitelist Mode for Command Filtering

Currently, RTK only supports blacklist-style filtering via exclude_commands in the config. I would like to request a whitelist mode:

  • Only commands explicitly listed in include_commands are filtered and rewritten by RTK.
  • All other commands should be passed through unchanged.
  • Example syntax:
[hooks]
include_commands = ["git status", "cargo build"]

Use Case: This type of control lets users opt-in with a safe set of verified commands, reducing risk from unknown scenarios and making adoption in stable workflows much safer. This would be mutually exclusive with exclude_commands.

Thank you!

貢獻者指南