rtk-ai/rtk
在 GitHub 查看feat: add Azure CLI (az) filter for JSON output and warning suppression
Open
#1,915 建立於 2026年5月16日
area:clienhancementhelp wantedpriority:low
倉庫指標
- Star
- (48,085 star)
- PR 合併指標
- (平均合併 11天 1小時) (30 天內合併 45 個 PR)
描述
Problem
Azure CLI (az) prepends upgrade warning messages to every command output before the actual JSON result. These warnings ("WARNING: The default value for this argument will change", "Please let us know how you feel about this change") appear before the useful JSON and inflate token usage on every call.
Proposed Solution
Add src/filters/az.toml matching ^az\b that:
- Strips
WARNING:prefix lines - Strips "Please let us know" and "You can use" continuation lines
- Truncates at 120 chars/50 lines for large JSON list output
- Preserves the actual JSON response
Also add a corresponding RtkRule in src/discover/rules.rs with subcmd_savings for common subcommands (aks, vm, network, storage, group, acr).