Comparing version
@@ -7,3 +7,3 @@ const figlet = require('figlet') | ||
import ora from 'ora'; | ||
const { isMac, REPO_LINK } = require('./utils') | ||
const { isMac, isWindows, isLinux, REPO_LINK } = require('./utils') | ||
@@ -52,5 +52,7 @@ | ||
spin.start(`Installing Pods into ${name}/ios/Pods`) | ||
const installedPods = await installingPods(name) | ||
spin.succeed('Pods Installed') | ||
if(isMac){ | ||
spin.start(`Installing Pods into ${name}/ios/Pods`) | ||
const installedPods = await installingPods(name) | ||
spin.succeed('Pods Installed') | ||
} | ||
@@ -65,7 +67,22 @@ spin.start(`Moving into ${name}`) | ||
} | ||
try { | ||
spin.start(`opening ${name} `) | ||
if(isMac || isLinux){ | ||
await execa('open', ['.']) | ||
spin.succeed('Completed') | ||
return | ||
} | ||
if(isWindows){ | ||
require('child_process').exec(`start "" "${name}"`) | ||
spin.succeed('Completed') | ||
return | ||
} | ||
spin.start(`opening ${name} `) | ||
await execa('open', ['.']) | ||
spin.succeed('Completed') | ||
}catch(err){ | ||
spin.fail(`Failed to open ${name}`,err) | ||
} | ||
figlet('RIGEL', function (err, data) { | ||
@@ -72,0 +89,0 @@ if (err) { |
@@ -9,3 +9,3 @@ { | ||
}, | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"license": "MIT", | ||
@@ -12,0 +12,0 @@ "dependencies": { |
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
27081
1.12%748
1.91%1
Infinity%