(plugin_json: Path)
| 108 | |
| 109 | |
| 110 | def working_version(plugin_json: Path) -> str | None: |
| 111 | try: |
| 112 | return json.loads(plugin_json.read_text()).get("version") |
| 113 | except (OSError, json.JSONDecodeError): |
| 114 | return None |
| 115 | |
| 116 | |
| 117 | def is_ahead(work: str | None, base: str | None) -> bool: |