gabriel / muse public
refactor patch dev
AI Agent gabriel · 159 days ago · Apr 19, 2026 · Diff

refactor: standardize --format→--json/-j for config; fix envelope unwrap in tests

config read: remove redundant --format/-f; standardize all three subcommands (get, set, read) to use dest=json_out uniformly.

Test fixes: update assertions to unwrap config envelope (data["config"]), fix _json_show helper to return the inner config dict, update stale --format test invocations to --json/-j.

sha256:64aea867d4236a8d274223e82b3ff7a1eb41a26136d41afc90beb6b2c49f7d4b sha
+14 ~17 −4 symbols
sha256:3ed8177af6945f9fcf7882a340cd58d781042eaea85d5df4ec8d5e368eeb25c8 snapshot
+14
symbols added
~17
symbols modified
−4
symbols removed
0
dead code introduced
Semantic Changes 35 symbols
~ tests/test_cmd_config.py .py 10 symbols added, 8 symbols modified
+ TestRegisterFlags class class TestRegisterFlags L57–96
+ _parse method method _parse L58–64
+ test_get_default_json_out_is_false method method test_get_default_json_out_is_false L66–68
+ test_get_j_shorthand_sets_json_out method method test_get_j_shorthand_sets_json_out L74–76
+ test_get_json_flag_sets_json_out method method test_get_json_flag_sets_json_out L70–72
+ test_read_default_json_out_is_false method method test_read_default_json_out_is_false L86–88
+ test_read_j_shorthand_sets_json_out method method test_read_j_shorthand_sets_json_out L94–96
+ test_read_json_flag_sets_json_out method method test_read_json_flag_sets_json_out L90–92
+ test_set_default_json_out_is_false method method test_set_default_json_out_is_false L78–80
+ test_set_json_flag_sets_json_out method method test_set_json_flag_sets_json_out L82–84
~ tests/test_cmd_config_hardening.py .py 4 symbols added, 4 symbols removed, 5 symbols modified
− test_read_format_json_alias method method test_read_format_json_alias L413–417
− test_f_short_flag_json_alias method method test_f_short_flag_json_alias L862–867
− test_format_text_explicit method method test_format_text_explicit L869–874
− test_json_and_format_json_together_no_double_output method method test_json_and_format_json_together_no_double_output L876–885
+ test_read_json_flag_emits_json method method test_read_json_flag_emits_json L419–423
+ test_default_is_text_output method method test_default_is_text_output L875–880
+ test_j_shorthand_emits_json method method test_j_shorthand_emits_json L868–873
+ test_json_flag_emits_single_object method method test_json_flag_emits_single_object L882–891
← Older Oldest on dev
All commits
Newer → Latest on dev

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:64aea867d4236a8d274223e82b3ff7a1eb41a26136d41afc90beb6b2c49f7d4b --body "your comment"