Skip to content

Commit 2aeddf1

Browse files
committed
Only target generators files
1 parent d13a971 commit 2aeddf1

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

sync_ai_rules/__main__.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,6 @@ def main():
6767
plugin_manager = PluginManager()
6868
plugin_manager.load_plugins(script_dir)
6969

70-
# Get target files (all generators use same files)
71-
first_generator = plugin_manager.pipelines[0].generator
72-
output_files = [
73-
os.path.join(project_root, filename) for filename in first_generator.default_filenames
74-
]
75-
7670
# Process each pipeline
7771
print()
7872
for pipeline in plugin_manager.pipelines:
@@ -97,7 +91,12 @@ def main():
9791
# Generate content using pipeline's generator
9892
content = pipeline.generator.generate(grouped_rules, {})
9993

100-
# Update all target files
94+
# Update target files for this generator
95+
output_files = [
96+
os.path.join(project_root, filename)
97+
for filename in pipeline.generator.default_filenames
98+
]
99+
101100
for file_path in output_files:
102101
success, message = update_documentation_file(
103102
file_path, content, pipeline.generator.get_section_markers()

0 commit comments

Comments
 (0)