rtk-ai/rtk

rtk grep "-v" does not invert the search

Open

#1,477 建立於 2026年4月23日

在 GitHub 查看
 (1 留言) (0 反應) (0 負責人)Rust (2,914 fork)batch import
area:clibugeffort-smallfilter-qualitygood first issuepriority:medium

倉庫指標

Star
 (48,085 star)
PR 合併指標
 (平均合併 11天 1小時) (30 天內合併 45 個 PR)

描述

Sometimes an LLM wants to invert the search and will use the grep -v command. RTK doesn't support this because the -v argument controls verbosity

Steps to reproduce

rtk grep -v foo /etc/hosts

Expected result

rtk grep should return all lines in the file which do not contain the string "foo"

Actual result

rtk grep returns all lines which do contain the string "foo"

貢獻者指南