diff --git a/aider/watch.py b/aider/watch.py index 576510e79..bb8aef1e7 100644 --- a/aider/watch.py +++ b/aider/watch.py @@ -135,6 +135,7 @@ def watch_source_files( result[file] = comment yield result + def get_ai_comment(filepath, encoding="utf-8"): """Extract AI comment from a file if present""" try: @@ -146,6 +147,7 @@ def get_ai_comment(filepath, encoding="utf-8"): return None return None + def main(): """Example usage of the file watcher""" import argparse