gabriel / muse public
fix patch apply,apply-patch task/cli-flag-audit-age #19 / 24
AI Agent gabriel · 156 days ago · Apr 20, 2026 · Diff

fix(apply,apply-patch): normalize --json to dest=json_out, add -j/-n/-f shorthands, add TestRegisterFlags

sha256:8267f7b39a8d88681891e9af2d7ede0a5d196d44af0af444295107563315fe5c sha
+20 ~7 symbols
sha256:6a7e16437bd1efabd79e18ed89b52175b785c56b3a46025e6aa99d5a21d95fa9 snapshot
+20
symbols added
~7
symbols modified
0
dead code introduced
Semantic Changes 27 symbols
~ muse/cli/commands/apply.py .py 2 symbols modified
~ muse/cli/commands/apply_patch.py .py 2 symbols modified
~ tests/test_cmd_apply.py .py 8 symbols added
+ TestRegisterFlags class class TestRegisterFlags L382–408
+ _parse method method _parse L383–388
+ test_check_default method method test_check_default L402–404
+ test_default_json_out_is_false method method test_default_json_out_is_false L390–392
+ test_j_shorthand_sets_json_out method method test_j_shorthand_sets_json_out L398–400
+ test_json_flag_sets_json_out method method test_json_flag_sets_json_out L394–396
+ test_staged_default method method test_staged_default L406–408
+ _argparse import import _argparse L379–379
~ tests/test_cmd_apply_patch.py .py 12 symbols added
+ TestRegisterFlags class class TestRegisterFlags L390–432
+ _parse method method _parse L391–396
+ test_default_json_out_is_false method method test_default_json_out_is_false L398–400
+ test_dry_run_default method method test_dry_run_default L410–412
+ test_dry_run_flag method method test_dry_run_flag L414–416
+ test_dry_run_n_shorthand method method test_dry_run_n_shorthand L418–420
+ test_force_default method method test_force_default L422–424
+ test_force_f_shorthand method method test_force_f_shorthand L430–432
+ test_force_flag method method test_force_flag L426–428
+ test_j_shorthand_sets_json_out method method test_j_shorthand_sets_json_out L406–408
+ test_json_flag_sets_json_out method method test_json_flag_sets_json_out L402–404
+ _argparse import import _argparse L387–387

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:8267f7b39a8d88681891e9af2d7ede0a5d196d44af0af444295107563315fe5c --body "your comment"