You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: compilation_configuration.rb
    path of file: ./repos/SwiftGen/rakelib
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

require 'yaml'

COMPILATION_CONFIGURATION_FILE = 'compilation-configuration.yml'
M
    
  def commands_for_file(file)
    filename = File.basename(file)

    platforms(filename).flat_map do |platform|
      swift_versions(filename).map do |swift_version|
        module_path = "#{MODULE_OUTPUT_PATH}/swift#{swift_version}/#{platform.sdk}"
        definitions = definitions(filename).join(' ')
        extra_files = files(filename).join(' ')

        %(--toolchain #{TOOLCHAIN} -sdk #{platform.sdk} swiftc -swift-version #{swift_version} ) +
          %(-typecheck -target "#{platform.target}" -I "#{module_path}" #{definitions} ) +
          %(-module-name SwiftGen #{extra_files} #{file})
      end
    end
  end