mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-21 02:29:23 +00:00
added ability to freeze terminal screen on connection lost
This commit is contained in:
parent
2c018b9b11
commit
a15664c0ab
4 changed files with 10 additions and 7 deletions
|
|
@ -29,14 +29,15 @@ function readConfig(){
|
|||
var lConfig = cloudRequire('./config');
|
||||
if(lConfig){
|
||||
console.log('config.json readed');
|
||||
console.log(process.argv);
|
||||
|
||||
/* if command line parameter testing resolved
|
||||
* setting config to testing, so server
|
||||
* not created, just init and
|
||||
* all logs writed to screen
|
||||
*/
|
||||
var lArg = process.argv[process.argv.length - 1];
|
||||
var lArg = process.argv[process.argv.length - 1];
|
||||
if ( lArg === 'test' || lArg === 'test\r') {
|
||||
console.log(process.argv);
|
||||
lConfig.server = false;
|
||||
lConfig.logs = false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue