def execute(output: $stdout, errors: $stderr)
      if empty_name?
        output.puts 'No name given'
        return false
      end
      result = run "find #{@path} #{type} -name '#{@name}'" do |_out, err|
        errors << err if err
      end
      # The following line makes the output into something readable
      #
      # Before the output would have looked like this:
      ## ./lib/my_file.rb
      ## ./lib/folder/my_file.rb
      #
      # Whereas it will now look like this:
      ## ./lib/my_file.rbi NEW_NAME=> ./lib/my_file.rb
      ## ./lib/folder/my_file.rb NEW_NAME=> ./lib/folder/my_file.rb
      #
      # Making it more obvious that the original path is on the left
      # and the path to edit is on the right
      @result = result.out.split("\n").map { |path| "#{path} NEW_NAME=> #{path}" }.join("\n")
    rescue TTY::Command::ExitError => error
      output.puts error
    end
def execute(output: $stdout, errors: $stderr)
      if empty_name?
        output.puts 'No name given'
        return false
      end
      result = run "find #{@path} #{type} -name '#{@name}'" do |_out, err|
        errors << err if err
      end
      # The following line makes the output into something readable
      #
      # Before the output would have looked like this:
      ## ./lib/my_file.rb
      ## ./lib/folder/my_file.rb
      #
      # Whereas it will now look like this:
      ## ./lib/my_file.rbi NEW_NAME=> ./lib/my_file.rb
      ## ./lib/folder/my_file.rb NEW_NAME=> ./lib/folder/my_file.rb
      #
      # Making it more obvious that the original path is on the left
      # and the path to edit is on the right
      @result = result.out.split("\n").map { |path| "#{path} NEW_NAME=> #{path}" }.join("\n")
    rescue TTY::Command::ExitError => error
      output.puts error
    end
Performs the find unless no name provided

 @param output [IO]

 @param errors [IO]