MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / check_optional_tools

Function check_optional_tools

scripts/doctor.py:102–109  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

100
101
102def check_optional_tools() -> None:
103 print("\nOptional tools")
104 ngrok_path = os.environ.get("NGROK_PATH", "").strip() or shutil.which("ngrok") or shutil.which("ngrok.exe")
105 status(bool(ngrok_path), "ngrok", str(ngrok_path or "not found"))
106 lark_cli = os.environ.get("FEISHU_CLI_CMD", "").strip() or shutil.which("lark-cli") or shutil.which("lark-cli.cmd")
107 status(bool(lark_cli), "lark-cli", str(lark_cli or "not found"))
108 rg = shutil.which("rg")
109 status(bool(rg), "ripgrep", str(rg or "optional but useful"))
110
111
112def main() -> int:

Callers 1

mainFunction · 0.85

Calls 2

statusFunction · 0.85
getMethod · 0.80

Tested by

no test coverage detected