MCPcopy Index your code
hub / github.com/grapeot/devin.cursorrules / main

Function main

tools/search_engine.py:67–76  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

65 sys.exit(1)
66
67def main():
68 parser = argparse.ArgumentParser(description="Search using DuckDuckGo API")
69 parser.add_argument("query", help="Search query")
70 parser.add_argument("--max-results", type=int, default=10,
71 help="Maximum number of results (default: 10)")
72 parser.add_argument("--max-retries", type=int, default=3,
73 help="Maximum number of retry attempts (default: 3)")
74
75 args = parser.parse_args()
76 search(args.query, args.max_results, args.max_retries)
77
78if __name__ == "__main__":
79 main()

Callers 1

search_engine.pyFile · 0.70

Calls 1

searchFunction · 0.85

Tested by

no test coverage detected