openfin-cli
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -20,2 +20,9 @@ #!/usr/bin/env node | ||
'--file-name <application name to be used in the config>', | ||
'--no-ext <If set “true”, the file is extention-less>', | ||
'--rvm-config <URL that points to the RVM config. Must be a full URL.>', | ||
'--support-email <The email address to display in the installer when an error occurs. Default value = "support@openfin.co">', | ||
'--dnl <Installs an application without launching it. Set value to true [dnl=true]>', | ||
'--version current version of the tool', | ||
@@ -22,0 +29,0 @@ 'Example', |
20
index.js
@@ -43,9 +43,17 @@ 'use strict'; | ||
name = flags.n || flags.name || configObj.startup_app.name || 'openfin', | ||
openfinInstaller = require('openfin-installer')(configObj); | ||
openfinInstaller = require('openfin-installer')(configObj), | ||
fetchOptions = { | ||
noExt : flags.noExt || null, | ||
rvmConfig : flags.rvmConfig || null, | ||
supportEmail : flags.supportEmail || null, | ||
dnl : flags.dnl || null, | ||
destination : flags.d || flags.destination, | ||
config: flags.c || null, | ||
name: name | ||
} | ||
if (destination) { | ||
openfinInstaller | ||
.fetchInstaller({ | ||
destination: destination | ||
}) | ||
.fetchInstaller(fetchOptions) | ||
.then(function() { | ||
@@ -60,3 +68,5 @@ console.log('Installer zip written to', destination); | ||
if (hyperlink) { | ||
console.log('\n', openfinInstaller.generateInstallUrl(encodeURIComponent(name), installer), '\n'); | ||
console.log('\n', openfinInstaller.generateInstallUrl(encodeURIComponent(name), fetchOptions.config, | ||
fetchOptions.noExt, fetchOptions.rvmConfig, fetchOptions.supportEmail, fetchOptions.dnl), '\n'); | ||
} | ||
@@ -63,0 +73,0 @@ } |
{ | ||
"name": "openfin-cli", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "OpenFin Runtime cli tool", | ||
@@ -5,0 +5,0 @@ "homepage": "http://www.openfin.co", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2264863
160
2