Skip to content

feat(cli): add wmk hub command#196

Merged
DingmaomaoBJTU merged 4 commits into
mainfrom
qiowu/wmk_cmd
Apr 1, 2026
Merged

feat(cli): add wmk hub command#196
DingmaomaoBJTU merged 4 commits into
mainfrom
qiowu/wmk_cmd

Conversation

@DingmaomaoBJTU
Copy link
Copy Markdown
Collaborator

@DingmaomaoBJTU DingmaomaoBJTU commented Mar 31, 2026

Summary

  • Adds wmk hub CLI command backed by hub_models.json (17 validated models)
  • wmk hub renders a 3-column catalog table (Model / Task / Model Type) in a blue Panel with a hint line printed below the border
  • wmk hub --model-type <type> / --task <task> case-insensitive filters
  • wmk hub --model <id> renders 3 separate Panels: General Info, Latency (ms), and Accuracy
  • --output <file> saves results as JSON; no default auto-save without --output
  • Partial and case-insensitive model ID matching; ambiguous match → non-zero exit with suggestions
  • ASCII-only icons ([+] [~] [!]); no UTF-8 emoji
  • 28 unit tests in tests/unit/commands/test_hub.py via click.testing.CliRunner

Closes #117

image image

@DingmaomaoBJTU DingmaomaoBJTU requested a review from a team as a code owner March 31, 2026 13:23
Comment thread tests/unit/commands/test_hub.py
Comment thread tests/unit/commands/test_hub.py
Comment thread src/winml/modelkit/commands/hub.py Outdated
@DingmaomaoBJTU DingmaomaoBJTU enabled auto-merge (squash) April 1, 2026 02:46
@DingmaomaoBJTU DingmaomaoBJTU disabled auto-merge April 1, 2026 02:46
@DingmaomaoBJTU DingmaomaoBJTU merged commit 78442c4 into main Apr 1, 2026
9 checks passed
@DingmaomaoBJTU DingmaomaoBJTU deleted the qiowu/wmk_cmd branch April 1, 2026 03:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(cli): Add wmk hub command to query built-in model registry

2 participants