/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ package com.facebook.react.utils internal fun windowsAwareCommandLine(vararg args: Any): List = windowsAwareCommandLine(args.toList()) internal fun windowsAwareCommandLine(args: List): List = if (Os.isWindows()) { listOf("cmd", "/c") + args } else { args } internal fun windowsAwareBashCommandLine( vararg args: String, bashWindowsHome: String? = null ): List = if (Os.isWindows()) { listOf(bashWindowsHome ?: "bash", "-c") + args } else { args.toList() }