parameters: (command)
return_statement: return command
docstring: Generates commands compatible with Windows.
  
    When running on a Windows host and using a toolchain whose tools are
    actually wrapper scripts (i.e. .bat files on Windows) rather than binary
    executables, the |command| to run has to be prefixed with this magic.
    The GN toolchain definitions take care of that for when GN/Ninja is
    running the tool directly.  When that command is passed in to this
    script, it appears as a unitary string but needs to be split up so that
    just 'cmd' is the actual command given to Python's subprocess module.
  
    Args:
      command: List containing the UNIX style |command|.
  
    Returns:
      A list containing the Windows version of the |command|.
docstring_summary: Generates commands compatible with Windows.
docstring_tokens: Generates commands compatible with Windows .
function: def CommandToRun(command):
    """Generates commands compatible with Windows.
  
    When running on a Windows host and using a toolchain whose tools are
    actually wrapper scripts (i.e. .bat files on Windows) rather than binary
    executables, the |command| to run has to be prefixed with this magic.
    The GN toolchain definitions take care of that for when GN/Ninja is
    running the tool directly.  When that command is passed in to this
    script, it appears as a unitary string but needs to be split up so that
    just 'cmd' is the actual command given to Python's subprocess module.
  
    Args:
      command: List containing the UNIX style |command|.
  
    Returns:
      A list containing the Windows version of the |command|.
    """
    if command[0].startswith(_BAT_PREFIX):
      command = command[0].split(None, 3) + command[1:]
    return command
function_tokens: def CommandToRun ( command ) : if command [ 0 ] . startswith ( _BAT_PREFIX ) : command = command [ 0 ] . split ( None , 3 ) + command [ 1 : ] return command