categorize_command buckets psql (and mysql) as "other" instead of "cloud" in rtk gain

Open Beginner friendly
#4,023 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
90/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
rust
Domain
cli

Research direction

Start in src/core/tracking.rs at categorize_command and review the existing cloud-command arm. Check the related entry points under src/cmds/cloud/, including aws, curl, and wget, against the categorization list. Done means psql and mysql appear under the cloud category in rtk gain rather than other, with existing behavior preserved.

Written by the indexing model from the issue text.

Description

area:performance bug good first issue priority:low

categorize_command in src/core/tracking.rs has no arm for psql, so every rtk psql run is bucketed as "other" in rtk gain's category breakdown rather than "cloud", where docker and kubectl already sit. mysql (added in #3153) inherits the same gap.

"docker" | "kubectl" => "cloud",

There is no psql/mysql arm, and the fallthrough is _ => "other".

Pre-existing — #3153 matches the existing psql behaviour rather than introducing this — so it was left out of that review. The fix is one arm:

"docker" | "kubectl" | "psql" | "mysql" => "cloud",

Worth checking the other src/cmds/cloud/ entry points (aws, curl, wget) against the same list while touching it.

Dominant language
Rust
Stars
81.1k
Forks
5.1k
Avg merge
4d 11h
Merged PRs (30d)
42

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from rtk-ai/rtk

All issues in rtk-ai/rtk

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.