feat : java interpreter bash handle

This commit is contained in:
martin legrand 2025-04-11 12:59:14 +02:00
parent 9fe561085b
commit a9c1f5b790

View File

@ -25,7 +25,7 @@ class BashInterpreter(Tools):
If so, return True, otherwise return False.
Code written by the AI will be executed automatically, so it should not use bash to run it.
"""
lang_interpreter = ["python3", "gcc", "g++", "go", "javac", "rustc", "clang", "clang++", "rustc", "rustc++", "rustc++"]
lang_interpreter = ["python3", "gcc", "g++", "mvn", "go", "javac", "rustc", "clang", "clang++", "rustc", "rustc++", "rustc++"]
for word in command.split():
if word in lang_interpreter:
return True