crackerjack 0.37.2__py3-none-any.whl → 0.37.4__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of crackerjack might be problematic. Click here for more details.

@@ -16,12 +16,36 @@ def parse_bump_option_with_flag_support(
16
16
 
17
17
  # If the value starts with a dash, it's likely another flag that typer mistakenly captured
18
18
  if value.startswith("-"):
19
- # Handle specific flags that were consumed
20
- if value in ["-c", "--commit"]:
21
- # Set the commit parameter directly in the context
19
+ print(f"🐛 DEBUG: Flag '{value}' consumed by -p")
20
+
21
+ # Map of consumed flags to their corresponding parameter names
22
+ flag_mapping = {
23
+ "-c": "commit",
24
+ "--commit": "commit",
25
+ "-v": "verbose",
26
+ "--verbose": "verbose",
27
+ "-s": "skip_hooks",
28
+ "--skip-hooks": "skip_hooks",
29
+ "-i": "interactive",
30
+ "--interactive": "interactive",
31
+ "-n": "no_config_updates",
32
+ "--no-config-updates": "no_config_updates",
33
+ "-u": "update_precommit",
34
+ "--update-precommit": "update_precommit",
35
+ "-t": "run_tests",
36
+ "--run-tests": "run_tests",
37
+ "-x": "strip_code",
38
+ "--strip-code": "strip_code",
39
+ "--debug": "debug",
40
+ }
41
+
42
+ # Handle any consumed flag
43
+ if value in flag_mapping:
44
+ param_name = flag_mapping[value]
45
+ # Set the parameter directly in the context
22
46
  if not hasattr(ctx, 'params'):
23
47
  ctx.params = {}
24
- ctx.params['commit'] = True
48
+ ctx.params[param_name] = True
25
49
 
26
50
  # Default to interactive mode when used as a flag
27
51
  return "interactive"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: crackerjack
3
- Version: 0.37.2
3
+ Version: 0.37.4
4
4
  Summary: Crackerjack Python project management tool
5
5
  Project-URL: documentation, https://github.com/lesleslie/crackerjack
6
6
  Project-URL: homepage, https://github.com/lesleslie/crackerjack
@@ -34,7 +34,7 @@ crackerjack/cli/cache_handlers_enhanced.py,sha256=6X5rYSo1l-rj9eb7eB8mpA-6BlUagy
34
34
  crackerjack/cli/facade.py,sha256=e4_oB04awqEijI3yqiYAZGc6x09uMBa4ih0SsXpgMuY,3751
35
35
  crackerjack/cli/handlers.py,sha256=mYhwMLUKid6mQLff0ScpcnhP0yUS9IzOIMdM7VLkUCc,17178
36
36
  crackerjack/cli/interactive.py,sha256=E7WgzgNRlgOuKLbi5Io3RQ3BBXS8sIDiUQcJh6b2x9I,17583
37
- crackerjack/cli/options.py,sha256=BqMw7Q3Uv3ufSYmpJedy2edcAlaPQzKow3TAlMrxymE,35528
37
+ crackerjack/cli/options.py,sha256=Ad-UhhRUnwEd4a9KKC1X4vdGaBxSqJ9F_Ona-3KXqvM,36356
38
38
  crackerjack/cli/utils.py,sha256=XC7dT8GNidhORjUe2p2hQOpZgCi2KvVCNu6g3azzgqY,584
39
39
  crackerjack/config/__init__.py,sha256=b0481N2f_JvGufMPcbo5IXu2VjYd111r1BHw0oD3x7o,330
40
40
  crackerjack/config/global_lock_config.py,sha256=PyonoA2__HKEEvn6SD-gEYh9iD7xIAdts2C3lNoTWhw,1996
@@ -224,8 +224,8 @@ crackerjack/tools/validate_input_validator_patterns.py,sha256=NN7smYlXWrHLQXTb-8
224
224
  crackerjack/tools/validate_regex_patterns.py,sha256=9ejFb7Tw1js_oydzuEeeeXvrU5ipHUEX9ATBfkLCCE8,5811
225
225
  crackerjack/ui/__init__.py,sha256=eMb1OeTU-dSLICAACn0YdYB4Amdr8wHckjKfn0wOIZE,37
226
226
  crackerjack/ui/server_panels.py,sha256=F5IH6SNN06BaZQMsFx_D-OA286aojmaFPJ5kvvSRv_c,4232
227
- crackerjack-0.37.2.dist-info/METADATA,sha256=bCrnGSSqaT4KiXsJBWzU2DxxkwfZQVDvJJKs4ZNZMZA,37949
228
- crackerjack-0.37.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
229
- crackerjack-0.37.2.dist-info/entry_points.txt,sha256=AJKNft0WXm9xoGUJ3Trl-iXHOWxRAYbagQiza3AILr4,57
230
- crackerjack-0.37.2.dist-info/licenses/LICENSE,sha256=fDt371P6_6sCu7RyqiZH_AhT1LdN3sN1zjBtqEhDYCk,1531
231
- crackerjack-0.37.2.dist-info/RECORD,,
227
+ crackerjack-0.37.4.dist-info/METADATA,sha256=DHToYht3-oAai3FRaIap3UPScw3rmi2xdP6VS9Y6lWU,37949
228
+ crackerjack-0.37.4.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
229
+ crackerjack-0.37.4.dist-info/entry_points.txt,sha256=AJKNft0WXm9xoGUJ3Trl-iXHOWxRAYbagQiza3AILr4,57
230
+ crackerjack-0.37.4.dist-info/licenses/LICENSE,sha256=fDt371P6_6sCu7RyqiZH_AhT1LdN3sN1zjBtqEhDYCk,1531
231
+ crackerjack-0.37.4.dist-info/RECORD,,