WP_CLI\Utils
is_windows()
Check if we're running in a Windows environment (cmd.exe).
No Hooks.
Return
true|false
.
Usage
is_windows();
is_windows() is windows code WP-CLI 2.8.0-alpha
function is_windows() { $test_is_windows = getenv( 'WP_CLI_TEST_IS_WINDOWS' ); return false !== $test_is_windows ? (bool) $test_is_windows : strtoupper( substr( PHP_OS, 0, 3 ) ) === 'WIN'; }