Skip to content

@coderaiser coderaiser released this May 31, 2019 · 15 commits to master since this release

Config Manager

Now you can provide custom config managers to every cloudcmd mount point you wish 🙂.
Here is how it looks like:

const http = require('http');
const cloudcmd = require('cloudcmd');
const io = require('socket.io');
const app = require('express')();

const port = 1337;
const prefix = '/';

const {createConfigManager} = cloudcmd;

const server = http.createServer(app);
const socket = io.listen(server, {
    path: `{prefix}socket.io`
});

const configManager1 = createconfigManager();
configManager1('name', '1');

const configManager2 = createconfigManager();
configManager2('name', '2');

app.use('/1', cloudcmd({
    socket,
    configManager: configManager2(),
}));

app.use('/2', cloudcmd({
    socket,
    configManager: configManager2,
}));

server.listen(port);

feature

  • (config-manager) add (#208)
  • (package) add support of cwd in TerminalRun with help of gritty v4.7.0
  • (user-menu) add ability to ignore private methods
Assets 7
You can’t perform that action at this time.