'Linux', str_contains($target, 'macos') => 'Darwin', str_contains($target, 'windows') => 'Windows', default => throw new WrongUsageException('Cannot parse target.'), }; } }