UNPKG

816 BJavaScriptView Raw
1/*
2 * Copyright (C) 2019 Forward Thinking, Inc. - All Rights Reserved
3 * Unauthorized copying of this file, via any medium is strictly prohibited
4 * Proprietary and confidential
5 */
6const {Cli} = require ('./lib/Cli.js');
7const {Config} = require('./lib/Config.js');
8const {ApiInterface} = require('./lib/ApiInterface.js');
9exports.ConfigInterface = Config;
10exports.ApiInterface = ApiInterface;
11let config, api, cli;
12Object.defineProperties(exports, {
13 config: {
14 get: () => config || (config = new Config())
15 },
16 api: {
17 get: () => api || (api = new ApiInterface(exports.config))
18 },
19 cli: {
20 get: () => cli || (cli = new Cli(exports.config, exports.api)
21 .require('../commands/config.js')
22 .require('../commands/users.js')
23 .require('../commands/blueprints.js')
24 .require('../commands/objects.js'))
25 }
26});
27