-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathindex.js
70 lines (62 loc) · 1.9 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
"use strict";
/**
* @export SOASTA
*
* @desc
* Exports the [Repository API Class]{@link SOASTA} to access SOASTA Repository API from NodeJS
* Exports the [Annotation API Class]{@link SOASTA} to access SOASTA Repository API from NodeJS
* Exports the [Timeline API Class]{@link SOASTA} to access SOASTA Repository API from NodeJS
*/
exports.SOASTA = require("./lib/model/SOASTA");
// cheap and dirty way to see if we're in a node context
if (typeof window === "undefined") {
/**
* @export cmd
*
* @desc
* Exports the [Repository CLI API client]{@link cmd} to access the CLI application
* to interact from a shell with the Repository
*
* @example
* // Retrieve instance
* require('soasta-repository').cmd()
*/
exports.cmdRepository = require("./cli/cmd").program;
/**
* @export CLI
*
* @desc
* Exports the [CLI utility class]{@link CLI} to initialize the API for CLI use
*/
exports.CLIRepository = require("./cli/core");
/**
* @export cmdAnnotation
*
* @desc
* Exports the [Annotation CLI API client]{@link cmd} to access the CLI application
* to interact from a shell with the Repository
*/
exports.cmdAnnotation = require("./cliAnnotation/cmd").program;
/**
* @export CLI
*
* @desc
* Exports the [CLI utility class]{@link CLI} to initialize the API for CLI use
*/
exports.CLIAnnotation = require("./cliAnnotation/core");
/**
* @export cmdTimeline
*
* @desc
* Exports the [Timeline CLI API client]{@link cmd} to access the CLI application
* to interact from a shell with the Repository
*/
exports.cmdTimeline = require("./cliTimeline/cmd").program;
/**
* @export CLI
*
* @desc
* Exports the [CLI utility class]{@link CLI} to initialize the API for CLI use
*/
exports.CLITimeline = require("./cliTimeline/core");
}