From 00808cf2c6357728629488aac867d408fd638b39 Mon Sep 17 00:00:00 2001 From: David Sexton <88844553+davidsexton-dp360@users.noreply.github.com> Date: Wed, 10 Sep 2025 15:50:08 -0700 Subject: [PATCH] Implement IDE adaptation generator support for the --ide argument MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Renamed generate_all_adaptations to generate_configured_adaptations for clarity. - Integrated argparse to allow generating adaptations for a specific IDE via --ide argument. - Updated main() to filter IDE configurations based on user input, ensuring only the selected IDE’s adaptation is generated. --- create_ide_adaptations.py | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/create_ide_adaptations.py b/create_ide_adaptations.py index 7bfb912..c017014 100644 --- a/create_ide_adaptations.py +++ b/create_ide_adaptations.py @@ -24,6 +24,7 @@ import shutil import re from pathlib import Path +import argparse class IDEAdaptationGenerator: def __init__(self): @@ -1487,7 +1488,7 @@ def create_gemini_files(self, ide_dir): print(f"βœ… Created Gemini CLI configuration files") - def generate_all_adaptations(self): + def generate_configured_adaptations(self): """Generate all IDE adaptations.""" print("πŸš€ Generating AI Epic Framework IDE Adaptations...") print("=" * 60) @@ -1515,7 +1516,24 @@ def generate_all_adaptations(self): def main(): """Main function to run the IDE adaptation generator.""" generator = IDEAdaptationGenerator() - generator.generate_all_adaptations() + + parser = argparse.ArgumentParser(description="Run the IDE adaptation generator.") + parser.add_argument('--ide', type=str, help="Specify the IDE to generate adaptation for") + args = parser.parse_args() + + if args.ide: + ide_arg = args.ide.strip().lower() + match_key = f"{ide_arg}-specific" + + if match_key in generator.ide_configs: + print(f"πŸš€ Generating adaptation for: {match_key}") + # Keep only the selected IDE config + generator.ide_configs = {match_key: generator.ide_configs[match_key]} + else: + print(f"❌ Unknown IDE: {ide_arg}") + return + + generator.generate_configured_adaptations() if __name__ == "__main__": main() \ No newline at end of file