feature(cloudcmd) add exports.start

This commit is contained in:
coderaiser 2014-07-10 10:29:39 -04:00
parent ee0735601c
commit c42c9f8be5
3 changed files with 22 additions and 11 deletions

20
HELP.md
View file

@ -33,16 +33,26 @@ Install
The installation of file manager is very simple.
- install [node.js](http://nodejs.org/ "node.js") if you still have not.
- install ```cloudcmd``` via ```npm``` with one simple command.
- install ```cloudcmd``` via ```npm``` with:
npm install cloudcmd #local install
or
npm install cloudcmd -g #global install
![NPM_INFO][NPM_INFO_IMG]
Start
---------------
To start **Cloud Commander** only one command needed:
node cloudcmd
or if you install with `-g` flag just type:
To start **Cloud Commander** change directory to `node_modules/cloudcmd` and
run command:
node bin/cloudcmd
or if you install with `-g` flag just type in any directory:
cloudcmd

View file

@ -1,12 +1,11 @@
#!/usr/bin/env node
/* cloudcmd binary
* usage: node cloudcmd
*/
(function(){
'use strict';
require('../cloudcmd');
var CloudCmd = require('../cloudcmd');
CloudCmd.start();
})();

View file

@ -48,8 +48,10 @@
/* reinit main dir os if we on Win32 should be backslashes */
DIR = main.DIR;
readConfig(init);
win.prepareCodePage();
exports.start = function() {
readConfig(init);
win.prepareCodePage();
};
/**
* additional processing of index file