| 100 | |
| 101 | |
| 102 | def 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 | |
| 112 | def main() -> int: |