mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
feature(cloudcmd) add exports.start
This commit is contained in:
parent
ee0735601c
commit
c42c9f8be5
3 changed files with 22 additions and 11 deletions
20
HELP.md
20
HELP.md
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -1,12 +1,11 @@
|
|||
#!/usr/bin/env node
|
||||
|
||||
/* cloudcmd binary
|
||||
* usage: node cloudcmd
|
||||
*/
|
||||
(function(){
|
||||
'use strict';
|
||||
|
||||
require('../cloudcmd');
|
||||
var CloudCmd = require('../cloudcmd');
|
||||
|
||||
CloudCmd.start();
|
||||
|
||||
})();
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue