openfin-cli
Advanced tools
Comparing version 1.1.4 to 1.1.5
11
index.js
@@ -43,3 +43,4 @@ 'use strict'; | ||
destination = flags.d || flags.destination, | ||
name = flags.n || flags.name || configObj.startup_app.name || 'openfin', | ||
appName = configObj.startup_app ? configObj.startup_app.name : null, | ||
name = flags.n || flags.name || appName || 'openfin', | ||
openfinInstaller = require('openfin-installer')(configObj), | ||
@@ -114,4 +115,4 @@ | ||
var startup_app = {}, | ||
shortcut = {}, | ||
var shortcut = {}, | ||
startup_app = {}, | ||
configAction, | ||
@@ -132,2 +133,4 @@ actionMessage; | ||
shortcut.name = name; | ||
shortcut.company = name; | ||
shortcut.description = name; | ||
} | ||
@@ -141,3 +144,3 @@ if (url) { | ||
configAction({ | ||
startup_app: startup_app, | ||
startup_app: url ? startup_app : null, | ||
shortcut: shortcut | ||
@@ -144,0 +147,0 @@ }, config).fail(function(err) { |
{ | ||
"name": "openfin-cli", | ||
"version": "1.1.4", | ||
"version": "1.1.5", | ||
"description": "OpenFin Runtime cli tool", | ||
@@ -8,3 +8,3 @@ "homepage": "http://www.openfin.co", | ||
"name": "Ricardo de Pena", | ||
"email": "ricardo.depena@gmail.com", | ||
"email": "ricardo@openfin.co", | ||
"url": "http://www.openfin.co" | ||
@@ -11,0 +11,0 @@ }, |
@@ -21,3 +21,2 @@ # OpenFin Runtime cli tool | ||
```sh | ||
$ npm install --global openfin-cli | ||
$ openfin --help | ||
@@ -28,2 +27,8 @@ ``` | ||
####Launching OpenFin Demos | ||
``` | ||
$ openfin --launch --config http://cdn.openfin.co/demos/hyperblotter/app.json | ||
$ openfin --launch --config https://demoappdirectory.openf.in/desktop/config/apps/OpenFin/HelloOpenFin/app.json | ||
``` | ||
####Launching an application | ||
@@ -61,3 +66,3 @@ | ||
$ openfin -l -c myconfig.json | ||
$opengin -l -c http://goo.gl/w2747v | ||
$ openfin -l -c http://goo.gl/w2747v | ||
``` | ||
@@ -70,3 +75,3 @@ | ||
````sh | ||
$ openfin -n OpenFinPOC -c http://goo.gl/w2747v -h | ||
$ openfin -n OpenFinPOC -c http://goo.gl/w2747v -h | ||
```` | ||
@@ -73,0 +78,0 @@ |
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
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
10816
171
105