acecalisto3 commited on
Commit
6fdf7ad
·
verified ·
1 Parent(s): ddcb7a1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -102,7 +102,7 @@ class App:
102
  except Exception as e:
103
  print(f"Error adding component: {e}")
104
 
105
- def run_terminal_command(self, command, history):
106
  output = ""
107
  try:
108
  if command.startswith("add "):
@@ -130,7 +130,7 @@ class App:
130
  test_results = command.split("understand test results ")[1]
131
  return self.understand_test_results(test_results)
132
  elif command.startswith("compress history"):
133
- return self.compress_history(history)
134
  elif command == "help":
135
  return self.get_help_message()
136
  elif command == "exit":
@@ -172,7 +172,7 @@ class App:
172
  def process_input(self, input_text):
173
  if input_text.strip().startswith("/"):
174
  command = input_text.strip().lstrip("/")
175
- output = self.run_terminal_command(command, self.terminal_history)
176
  self.terminal_history += f"{input_text}\n{output}\n"
177
  return output, ""
178
  else:
 
102
  except Exception as e:
103
  print(f"Error adding component: {e}")
104
 
105
+ def run_terminal_command(self, command, *args):
106
  output = ""
107
  try:
108
  if command.startswith("add "):
 
130
  test_results = command.split("understand test results ")[1]
131
  return self.understand_test_results(test_results)
132
  elif command.startswith("compress history"):
133
+ return self.compress_history(self.terminal_history)
134
  elif command == "help":
135
  return self.get_help_message()
136
  elif command == "exit":
 
172
  def process_input(self, input_text):
173
  if input_text.strip().startswith("/"):
174
  command = input_text.strip().lstrip("/")
175
+ output = self.run_terminal_command(command)
176
  self.terminal_history += f"{input_text}\n{output}\n"
177
  return output, ""
178
  else: