class GPTerm

def gather_information_from_shell(prompt)

def gather_information_from_shell(prompt)
  info_prompt_response = @command_generator.first_prompt(prompt)
  if info_prompt_response.downcase == '$$no_gathering_needed$$'
    puts 'No information gathering needed'.colorize(:magenta) if @config[:verbose]
    shell_output = nil
  else
    info_prompt_response = run_refinement_loop(info_prompt_response, 'gather more information for your request')
    puts 'Running command...' if @config[:verbose]
    shell_output = `#{info_prompt_response}`
    if @config[:verbose]
      puts 'Shell output:'
      puts shell_output
    end
  end
  shell_output
end