rtk-ai/rtk

feat: add Azure CLI (az) filter for JSON output and warning suppression

Open

#1.915 geöffnet am 16. Mai 2026

Auf GitHub ansehen
 (1 Kommentar) (0 Reaktionen) (0 zugewiesene Personen)Rust (2.914 Forks)batch import
area:clienhancementhelp wantedpriority:low

Repository-Metriken

Stars
 (48.085 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 11T 1h) (45 gemergte PRs in 30 T)

Beschreibung

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).

Contributor Guide