feat: absorb git/GitHub muscle-memory flags in hub repo commands
hub repo create: accept --visibility public|private as alias for --private. Agents trained on GitHub CLI reach for --visibility reflexively; rejecting with a generic argparse error wastes a round-trip. Now maps cleanly: --visibility public → visibility=public (same as default) --visibility private → visibility=private (same as --private) --visibility X + --private contradicts → clear error
hub repo list: accept --owner with an actionable error explaining that no server-side owner filter exists and showing the exact python pipe pattern to filter client-side. Previously argparse's generic rejection gave agents no path forward.
9 new tests in TestRepoCreateVisibilityAlias + TestRepoListOwnerFlag.
sha256:ca5afc66a5c19bc2a46045467732df67c35e721faa52082d31c46f708fc29ea3
sha
+14
~3
symbols
sha256:0e5efb63f074602632521db888be561800f355fc36e203ae9be4634f95a641ca
snapshot
+14
symbols added
~3
symbols modified
0
dead code introduced
Semantic Changes
17 symbols
+
test_visibility_conflicts_with_private_flag
method
method test_visibility_conflicts_with_private_flag L1242–1250
+
test_visibility_invalid_value_exits_nonzero
method
method test_visibility_invalid_value_exits_nonzero L1230–1240
+
test_visibility_private_maps_to_private
method
method test_visibility_private_maps_to_private L1181–1205
+
test_owner_error_names_the_owner_value
method
method test_owner_error_names_the_owner_value L1299–1304
+
test_owner_error_suggests_pipe_pattern
method
method test_owner_error_suggests_pipe_pattern L1290–1297
+
test_owner_flag_exits_with_helpful_error
method
method test_owner_flag_exits_with_helpful_error L1282–1288
+
test_owner_flag_is_accepted_by_parser
method
method test_owner_flag_is_accepted_by_parser L1273–1280
0 comments
To add a comment, use the Muse CLI:
muse hub commit comment sha256:ca5afc66a5c19bc2a46045467732df67c35e721faa52082d31c46f708fc29ea3 --body "your comment"
No comments yet. Be the first to start the discussion.