rtk-ai/rtk
在 GitHub 查看feat: add ArgoCD CLI filter for app status and sync output compression
Open
#1,914 创建于 2026年5月16日
area:clienhancementhelp wantedpriority:medium
仓库指标
- Star
- (48,085 star)
- PR 合并指标
- (平均合并 11天 1小时) (30 天内合并 45 个 PR)
描述
Problem
argocd CLI output contains verbose log prefixes (time=..., TIMESTAMP ...), FATA fatal context deadline errors, and blank lines that add noise without value. App status tables and sync output are useful but surrounded by cruft.
Proposed Solution
Add src/filters/argocd.toml matching ^argocd\b that:
- Strips
time=log prefix lines - Strips
TIMESTAMPheader lines - Strips
FATA[N] context deadlinelines - Truncates at 120 chars/50 lines for large output
- Preserves app status tables, health info, and sync state
Also add a corresponding RtkRule in src/discover/rules.rs for automatic hook rewriting of argocd (app|repo|cluster|proj) subcommands.