main: merge --address and --gui-only switches, update docs

This commit is contained in:
jean-emmanuel 2016-09-30 17:44:25 +02:00
parent 2639cfd930
commit d9e7a0cea0
5 changed files with 5 additions and 9 deletions

View file

@ -1,6 +1,6 @@
# <img src="app/resources/images/logo.png" height="80px"/> Open Stage Control
Open Stage Control is a libre desktop OSC bi-directionnal control surface application. It's built with HTML, JavaScript & CSS on top of [Electron](http://electron.atom.io/) framework.
Open Stage Control is a libre desktop OSC bi-directionnal control surface application. It's built with HTML, JavaScript & CSS and run as a Node / [Electron](http://electron.atom.io/) web server that accepts any number of Chrome / Chromium / Electron clients.
## Documentation

View file

@ -2,9 +2,8 @@ var path = require('path'),
shortcut = require('electron-localshortcut'),
{app, BrowserWindow, dialog} = require('electron'),
settings = require('./settings'),
address = settings.read('address')? 'http://' + settings.read('address') : settings.read('appAddresses')[0]
address = typeof settings.read('guiOnly')=='string'? 'http://' + settings.read('guiOnly') : settings.read('appAddresses')[0]
console.log(address)
dialog.showErrorBox = function(title,err) {
console.log(title + ': ' + err)
}

View file

@ -15,8 +15,7 @@ var argv = require('yargs')
'i':{alias:'input-port',describe:'osc input port (for synchronization)'},
'd':{alias:'debug',describe:'log received osc messages in the console'},
'n':{alias:'no-gui',describe:'disable default gui'},
'g':{alias:'gui-only',describe:'only launch the gui (a server instance must be running) '},
'a':{alias:'address',describe:'app\'s ip:port (for gui-only mode, default to localhost:8080)'},
'g':{alias:'gui-only',describe:'app\'s ip:port, default to localhost:8080, only launch the gui (a server instance must be running)'},
't':{alias:'theme',type:'array',describe:'theme name or path (mutliple values allowed)'},
'examples':{describe:'list examples instead of recent sessions'}
})
@ -40,7 +39,6 @@ var config = function(){try {return JSON.parse(fs.readFileSync(configFile,'utf-8
sessionFile: argv.l || false,
noGui: argv.n || false,
guiOnly: argv.g || false,
address: argv.a || false,
appAddresses:function(){
var appAddresses = []

View file

@ -14,8 +14,7 @@ Options:
-d, --debug log received osc in the console
-p, --port http port of the app\'s server (default to 8080)
-n, --nogui disable default gui
-g, --gui-only only launch the gui (a server instance must be running)
-a, --address app\'s ip:port (for gui-only mode, default to localhost:8080)
-g, --gui-only app\'s ip:port, default to localhost:8080, only launch the gui (a server instance must be running)
-l, --load session file to load
-t, --theme theme name or path (mutliple values allowed)

View file

@ -1,6 +1,6 @@
# <img src="img/logo.png" height="80px"/> <small>Open Stage Control</small>
Open Stage Control is a libre desktop OSC bi-directionnal control surface application. It's built with HTML, JavaScript & CSS on top of [Electron](http://electron.atom.io/) framework.
Open Stage Control is a libre desktop OSC bi-directionnal control surface application. It's built with HTML, JavaScript & CSS and run as a Node / [Electron](http://electron.atom.io/) web server that accepts any number of Chrome / Chromium / Electron clients.
## Demo