|
1 | 1 | "use strict";
|
2 |
| -varcommand_line_1=require('../../../services/command-line'); |
| 2 | +varatom_plugin_command_line_1=require('atom-plugin-command-line'); |
3 | 3 | functionmatchVersions(v){
|
4 | 4 | returnv.match(/([0-9]+)\.([0-9]+)/);
|
5 | 5 | }
|
6 | 6 | functionminVersion(command,minVersion){
|
7 | 7 | returnnewPromise(function(resolve,reject){
|
8 |
| -varminOrLater=command_line_1.default(command,'-v') |
| 8 | +varminOrLater=atom_plugin_command_line_1.default(command,'-v') |
9 | 9 | .then(function(res){
|
10 | 10 | if(parseInt(res,10).toString()==='NaN'){
|
11 | 11 | returnfalse;
|
@@ -42,7 +42,7 @@ function requiresXCode() {
|
42 | 42 | if(!navigator.platform.match(/Mac/)){
|
43 | 43 | returntrue;
|
44 | 44 | }
|
45 |
| -returncommand_line_1.default('xcode-select','-v').then(function(res){ |
| 45 | +returnatom_plugin_command_line_1.default('xcode-select','-v').then(function(res){ |
46 | 46 | if(!!res.match(/xcode-selectversion[0-9]+/)){
|
47 | 47 | returntrue;
|
48 | 48 | }
|
|