Comparing version 0.1.1 to 0.1.2
@@ -31,28 +31,29 @@ #!/usr/bin/env node | ||
var argv = yargs.argv | ||
var _ = argv._ | ||
if (argv._[0] === 'add' && argv._[1]) { | ||
return servers.add(argv._[1], argv) | ||
if (_[0] === 'add' && _[1]) { | ||
return servers.add(_[1], argv) | ||
} | ||
if (argv._[0] === 'rm') { | ||
return servers.rm(argv._[1]) | ||
if (_[0] === 'rm') { | ||
return servers.rm(_[1]) | ||
} | ||
if (argv._[0] === 'ls') { | ||
if (_[0] === 'ls') { | ||
return servers.ls() | ||
} | ||
if (argv._[0] === 'start') { | ||
if (_[0] === 'start') { | ||
return daemon.start() | ||
} | ||
if (argv._[0] === 'stop') { | ||
if (_[0] === 'stop') { | ||
return daemon.stop() | ||
} | ||
if (argv._[0] === 'autostart') { | ||
if (_[0] === 'autostart') { | ||
return autostart.create() | ||
} | ||
if (argv._[0] === 'rm-autostart') { | ||
if (_[0] === 'rm-autostart') { | ||
return autostart.remove() | ||
@@ -59,0 +60,0 @@ } |
@@ -17,3 +17,3 @@ 'use strict'; | ||
var html = template(context); | ||
$('#targets').html(html); | ||
$('#content').html(html); | ||
}); |
{ | ||
"name": "hotel", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Easily start, stop and access your servers from the browser", | ||
@@ -5,0 +5,0 @@ "main": "lib", |
{ | ||
"optOut": false, | ||
"lastUpdateCheck": 1432893113169 | ||
"lastUpdateCheck": 1432918924953 | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
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
82687