Remove graphify.js plugin and deregister from opencode.json.
(opencode_dir: Path)
| 2006 | if _drop_opencode_config_entry(opencode_dir): |
| 2007 | print(f" {opencode_dir / _OPENCODE_CONFIG_PATH.name} -> stale plugin entry removed") |
| 2008 | def _uninstall_opencode_plugin(opencode_dir: Path) -> None: |
| 2009 | """Remove graphify.js plugin and deregister from opencode.json.""" |
| 2010 | plugin_file = opencode_dir / _OPENCODE_PLUGIN_PATH.relative_to(".opencode") |
| 2011 | if plugin_file.exists(): |
| 2012 | plugin_file.unlink() |
| 2013 | print(f" {plugin_file} -> removed") |
| 2014 | |
| 2015 | if _drop_opencode_config_entry(opencode_dir): |
| 2016 | print(f" {opencode_dir / _OPENCODE_CONFIG_PATH.name} -> plugin deregistered") |
| 2017 | def _resolve_graphify_exe(project: bool = False) -> str: |
| 2018 | """Return the absolute path to the graphify executable, with forward slashes. |
| 2019 |
no test coverage detected