MCPcopy
hub / github.com/CodeboxIDE/codebox / setup

Function setup

core/cb.core/main.js:7–25  ·  view source on GitHub ↗
(options, imports, register)

Source from the content-addressed store, hash-verified

5
6
7function setup(options, imports, register) {
8 // Imports
9 var events = imports.events;
10
11 // Options: root dir, title
12 var rootPath = options.root || path.resolve(__dirname, '..', '..');
13
14 var workspace = new Workspace({
15 'id': options.id,
16 'root': rootPath,
17 'name': options.title,
18 'public': options.public,
19 'maxUsers': options.maxUsers
20 }, events);
21
22 register(null, {
23 "workspace": workspace
24 });
25}
26
27// Exports
28module.exports = setup;

Callers

nothing calls this directly

Calls 1

registerFunction · 0.85

Tested by

no test coverage detected