gabriel / muse public
feat minor feat/repo-crud-completeness #1 / 1
gabriel · 168 days ago · Apr 13, 2026 · Diff

feat: add muse hub repo list and muse hub repo show CLI commands

- run_repo_list: GET /api/repos with limit/cursor pagination - run_repo_show: GET /api/{owner}/{slug} or /api/repos/{repo_id} - Add repo list and repo show subparsers in register() - Add TestHubRepoListCommand and TestHubRepoShowCommand (5 tests each)

sha256:04d3b3a210be2496aed2a87ba29f6fc43bf65d844a3cd930fa9c28a27d50be93 sha
+16 ~1 symbols
sha256:68be1b0ee60b8297a3ab93ce9410822c652c6e5497702f2ec564e4726d8aaf92 snapshot
+16
symbols added
~1
symbol modified
0
dead code introduced
Semantic Changes 17 symbols
~ muse/cli/commands/hub.py .py 2 symbols added, 1 symbol modified
+ run_repo_list function function run_repo_list L2865–2969
+ run_repo_show function function run_repo_show L2972–3072
~ tests/test_cli_hub.py .py 14 symbols added
+ TestHubRepoListCommand class class TestHubRepoListCommand L616–752
+ _setup_auth method method _setup_auth L619–628
+ test_repo_list_empty_prints_no_repos method method test_repo_list_empty_prints_no_repos L746–752
+ test_repo_list_json_fields_present method method test_repo_list_json_fields_present L700–729
+ test_repo_list_json_output_structure method method test_repo_list_json_output_structure L655–698
+ test_repo_list_passes_limit_to_api method method test_repo_list_passes_limit_to_api L731–744
+ test_repo_list_subcommand_exists method method test_repo_list_subcommand_exists L630–653
+ TestHubRepoShowCommand class class TestHubRepoShowCommand L760–859
+ _setup_auth method method _setup_auth L763–772
+ test_repo_show_json_fields_present method method test_repo_show_json_fields_present L815–830
+ test_repo_show_json_output_structure method method test_repo_show_json_output_structure L798–813
+ test_repo_show_subcommand_exists method method test_repo_show_subcommand_exists L789–796
+ test_repo_show_tags_preserved method method test_repo_show_tags_preserved L847–859
+ test_repo_show_uses_owner_slug_url method method test_repo_show_uses_owner_slug_url L832–845
← Older Oldest on feat/repo-crud-completeness
All commits
Newer → Latest on feat/repo-crud-completeness

0 comments

No comments yet. Be the first to start the discussion.

To add a comment, use the Muse CLI: muse hub commit comment sha256:04d3b3a210be2496aed2a87ba29f6fc43bf65d844a3cd930fa9c28a27d50be93 --body "your comment"