blacksmith-organization-system 0.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (119) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +83 -0
  3. package/config/README.md +0 -0
  4. package/docs/README.md +15 -0
  5. package/docs/devlog.md +20 -0
  6. package/invoke-api.js +0 -0
  7. package/invoke-cli.js +105 -0
  8. package/invoke-desktop.js +0 -0
  9. package/invoke-exec.js +0 -0
  10. package/invoke-webapp.js +0 -0
  11. package/main.js +33 -0
  12. package/package.json +38 -0
  13. package/shell-procedures/deploy-new-workshop.sh +15 -0
  14. package/shell-procedures/new-project.sh +0 -0
  15. package/shell-procedures/new-sheme.sh +0 -0
  16. package/shell-procedures/new-superproject.sh +6 -0
  17. package/shell-procedures/open-project.sh +0 -0
  18. package/shell-procedures/pack-backup.sh +22 -0
  19. package/shell-procedures/project-to-sarcophag.sh +0 -0
  20. package/shell-procedures/publicate.sh +0 -0
  21. package/shell-procedures/pull-archive.sh +0 -0
  22. package/shell-procedures/purge-workshop.sh +4 -0
  23. package/shell-procedures/push-to-bos-server.sh +0 -0
  24. package/shell-procedures/start-cli-interface.sh +1 -0
  25. package/shell-procedures/sweep-into-throwbox.sh +0 -0
  26. package/shell-procedures/synchronize.sh +7 -0
  27. package/system/bridges/README.md +4 -0
  28. package/system/bridges/main.js +41 -0
  29. package/system/commands/README.md +0 -0
  30. package/system/commands/debug.js +20 -0
  31. package/system/commands/exit.js +19 -0
  32. package/system/core/README.md +0 -0
  33. package/system/core/basic-subject-model.js +200 -0
  34. package/system/core/config-controll.js +51 -0
  35. package/system/core/contain-controll.js +28 -0
  36. package/system/core/event-controll.js +12 -0
  37. package/system/core/extending-mod.js +145 -0
  38. package/system/core/main.js +184 -0
  39. package/system/core/raport-controll.js +10 -0
  40. package/system/core/static-extender.js +19 -0
  41. package/system/factors/README.md +0 -0
  42. package/system/factors/bridge-factory.js +5 -0
  43. package/system/factors/command-factory.js +45 -0
  44. package/system/factors/config-factory.js +6 -0
  45. package/system/factors/controller-factory.js +5 -0
  46. package/system/factors/interface-factory.js +70 -0
  47. package/system/factors/model-factory.js +0 -0
  48. package/system/interfaces/README.md +28 -0
  49. package/system/interfaces/cli/index.js +96 -0
  50. package/system/interfaces/cli/init.js +47 -0
  51. package/system/interfaces/cli/loop.js +7 -0
  52. package/system/interfaces/cli/on-close.js +17 -0
  53. package/system/interfaces/cli/on-line.js +24 -0
  54. package/system/interfaces/cli/on-resume.js +15 -0
  55. package/system/interfaces/cli/setup.js +8 -0
  56. package/system/models/README.md +47 -0
  57. package/system/models/archive/README.md +0 -0
  58. package/system/models/archive/actions/README.md +0 -0
  59. package/system/models/archive/class.js +23 -0
  60. package/system/models/archive/events/README.md +0 -0
  61. package/system/models/archive/index.json +18 -0
  62. package/system/models/archive/listeners/README.md +0 -0
  63. package/system/models/archive/methods/README.md +0 -0
  64. package/system/models/forge/README.md +0 -0
  65. package/system/models/forge/actions/README.md +0 -0
  66. package/system/models/forge/class.js +23 -0
  67. package/system/models/forge/events/README.md +0 -0
  68. package/system/models/forge/index.json +18 -0
  69. package/system/models/forge/listeners/README.md +0 -0
  70. package/system/models/forge/methods/README.md +0 -0
  71. package/system/models/project/README.md +0 -0
  72. package/system/models/project/actions/README.md +0 -0
  73. package/system/models/project/class.js +23 -0
  74. package/system/models/project/events/README.md +0 -0
  75. package/system/models/project/index.json +18 -0
  76. package/system/models/project/listeners/README.md +0 -0
  77. package/system/models/project/methods/README.md +0 -0
  78. package/system/models/sarcophag/README.md +0 -0
  79. package/system/models/sarcophag/actions/README.md +0 -0
  80. package/system/models/sarcophag/class.js +22 -0
  81. package/system/models/sarcophag/events/README.md +0 -0
  82. package/system/models/sarcophag/index.json +18 -0
  83. package/system/models/sarcophag/listeners/README.md +0 -0
  84. package/system/models/sarcophag/methods/README.md +0 -0
  85. package/system/models/sheme/README.md +0 -0
  86. package/system/models/sheme/actions/README.md +0 -0
  87. package/system/models/sheme/class.js +23 -0
  88. package/system/models/sheme/events/README.md +0 -0
  89. package/system/models/sheme/index.json +18 -0
  90. package/system/models/sheme/listeners/README.md +0 -0
  91. package/system/models/sheme/methods/README.md +0 -0
  92. package/system/models/superproject/README.md +0 -0
  93. package/system/models/superproject/actions/README.md +0 -0
  94. package/system/models/superproject/class.js +23 -0
  95. package/system/models/superproject/events/README.md +0 -0
  96. package/system/models/superproject/index.json +18 -0
  97. package/system/models/superproject/listeners/README.md +0 -0
  98. package/system/models/superproject/methods/README.md +0 -0
  99. package/system/models/throwbox/README.md +0 -0
  100. package/system/models/throwbox/actions/README.md +0 -0
  101. package/system/models/throwbox/class.js +23 -0
  102. package/system/models/throwbox/events/README.md +0 -0
  103. package/system/models/throwbox/index.json +18 -0
  104. package/system/models/throwbox/listeners/README.md +0 -0
  105. package/system/models/throwbox/methods/README.md +0 -0
  106. package/system/models/workshop/README.md +0 -0
  107. package/system/models/workshop/actions/README.md +0 -0
  108. package/system/models/workshop/class.js +22 -0
  109. package/system/models/workshop/events/README.md +0 -0
  110. package/system/models/workshop/index.json +18 -0
  111. package/system/models/workshop/listeners/README.md +0 -0
  112. package/system/models/workshop/methods/README.md +0 -0
  113. package/system/resources/textarts/big-logo-title.txt +24 -0
  114. package/system/resources/textarts/big-shortcut-logo-title.txt +10 -0
  115. package/system/resources/textarts/medium-logo-title.txt +13 -0
  116. package/system/resources/textarts/minimenu-header.ptxml +13 -0
  117. package/system/resources/textarts/minimenu-header.txt +11 -0
  118. package/system/resources/textarts/small-logo-title.txt +10 -0
  119. package/system/resources/textarts/wellcome.txt +10 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2019 Sett Sarverott
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,83 @@
1
+
2
+ # Blacksmith Organization System
3
+
4
+ ```
5
+ █▄▄ █░░ ▄▀█ █▀▀ █▄▀ █▀ █▀▄▀█ █ ▀█▀ █░█
6
+ █▄█ █▄▄ █▀█ █▄▄ █░█ ▄█ █░▀░█ █ ░█░ █▀█
7
+
8
+ █▀█ █▀█ █▀▀ ▄▀█ █▄░█ █ ▀█ ▄▀█ ▀█▀ █ █▀█ █▄░█
9
+ █▄█ █▀▄ █▄█ █▀█ █░▀█ █ █▄ █▀█ ░█░ █ █▄█ █░▀█
10
+
11
+ █▀ █▄█ █▀ ▀█▀ █▀▀ █▀▄▀█
12
+ ▄█ ░█░ ▄█ ░█░ ██▄ █░▀░█
13
+ ```
14
+
15
+ ### automation of management in personal forest of projects
16
+ > ###### Sett Sarverott @ 2019-2024
17
+ > Part of R tier project "ANUBIS",
18
+
19
+ ---
20
+
21
+ ### about:
22
+
23
+ - basic and effective metodology of catalogization of project types, gouping parts of project and families of related projects and maintenance working condition
24
+
25
+ - strategy invented espesialy for mad science of wast and divesed chaos of technomantic workspaces, tested in action, with clearified concrete concept
26
+
27
+ - software system, that proofs mechanically, that it can be easy automated to help automate many casual software tasks
28
+
29
+ - perfect solution for long term maintain and archivisation of life work in multiple areas of artistical and informatical activity.
30
+
31
+ ---
32
+
33
+ ### results of usage:
34
+
35
+ - enjoy passion
36
+ - skip mindless routines
37
+ - keep productivity and quality of production
38
+ - protect your work from version collisions and data losts
39
+ - organize your life like ultimate boss of all cyberpunk blacksmiths
40
+ - take controll of your forge.
41
+ ---
42
+
43
+ ###### Source problems that makes me able to think it's more than possible
44
+
45
+ The basic idea was to automate repository controll and make order in project folders for better workspaces' view and controll with easier projects and publication management. Basic idea was work well and just methods of workshop dirtree was big success in local workspace area. Problem appears when new workspaces joins area of my operations and variantogeddon from desynchronization of version grows to uncontrollable sizes. Next issues become visible, after attempts to maintain speed of commiting and supporting publications boundles in thesame time, using conventional methods. But this was only beginning...
46
+
47
+ ---
48
+
49
+ ### Details of project:
50
+
51
+ - [About Models](./system/models/README.md) - workspace tree elements
52
+
53
+ - [About Interfaces](./system/interfaces/README.md) - for standard interactions
54
+
55
+ - [About Bridges](./system/bridges/README.md) - integration with other systems
56
+
57
+ - [About BOS Core](./system/core/README.md) - heart of cyberpunk blacksmith work
58
+
59
+ - [About Factories](./system/factors/README.md) - templates for elements of BOS
60
+
61
+ - [About Commands](./system/commands/README.md) - common set of commands
62
+
63
+ - [About resources](./system/resources/README.md) - non-executable files
64
+
65
+ - ~[Documentation](./docs/README.md) - main documentation~
66
+
67
+ - [DEV-LOG](./docs/devlog.md) - some scrap notes
68
+
69
+ ---
70
+
71
+ ### References:
72
+
73
+ - ~npm REPO: https://www.npmjs.com/package/blacksmith-organization-system~
74
+ - GitHub REPO: https://github.com/Sarverott/blacksmith-organization-system
75
+ - also good to see about:
76
+ - uses [carnival-toolbox](https://github.com/Sarverott/carnival-toolbox): npm library with many usefull tools
77
+ - part of [project anubis](https://github.com/Sarverott/anubis-helpmate): ultimate acolyte assisting programm
78
+ - ~[article about BOS metodology](https://sarverott.com/)~
79
+
80
+ ---
81
+
82
+ ### LICENSE:
83
+ > Copyright (c) 2019 Sett Sarverott, released on terms of MIT license
File without changes
package/docs/README.md ADDED
@@ -0,0 +1,15 @@
1
+
2
+ ```
3
+ ************************************
4
+ Part of R tier project "ANUBIS"
5
+ ______ _____ _____
6
+ | ___ \ | _ | / ___|
7
+ | |_/ / | | | | \ `--.
8
+ | ___ \ | | | | `--. \
9
+ | |_/ / \ \_/ / /\__/ /
10
+ \____(_) \___(_) \____(_)
11
+
12
+ By Sett Sarverott @ 2019-2024
13
+ ************************************
14
+ Version: 0.2.0 (PreAlfa_#1)
15
+ ```
package/docs/devlog.md ADDED
@@ -0,0 +1,20 @@
1
+ # ENTRY 1:
2
+ this is huge mess, i had overartistic phase about code, because of lack of reasoning in work. now it's time to list things to cutoff:
3
+ - strange require builder in libraries.js: i remember why it was like that - for easy morphing into browser-only service system... but it's dumb implementation of this idea, i had no clear idea how to do that
4
+ - every referencable var in module will be prioritized to be global scoped exclusively in file for reduction of too long reference chains and information noise generation by bad readability caused by text overwhelmnes in result
5
+ - prettification of staff
6
+ -
7
+
8
+ # entry 2:
9
+ model is autodeclaring own internals
10
+ > model directory:
11
+ - **class.js** - declaration of model
12
+ - ~fundation.json~ **index.json** - data structure of model
13
+ - **README.md** - about that type
14
+ - _**actions**_ - _DIR_ commands and available acts
15
+ - _**listeners**_ - _DIR_ all watchers and other stuff
16
+ - _**events**_ - _DIR_ basic behaviour
17
+ - _**extenders**_ - _DIR_ flat extension for every new object, produced by class.js
18
+ - _**methods**_ - _DIR_ synchronous static functions, resulting with return values
19
+
20
+ # entry 3:
package/invoke-api.js ADDED
File without changes
package/invoke-cli.js ADDED
@@ -0,0 +1,105 @@
1
+
2
+ const readline = require('readline');
3
+ const repl = require('repl');
4
+ const fs = require('fs');
5
+ const path = require('path');
6
+ const BOS=require("./system/core/main.js").INITIALIZE;
7
+
8
+ //BOS.LOAD();
9
+
10
+ const {INTERFACE, CLI} = BOS.LoadInterface("cli");
11
+
12
+ function mainProcedure(invokeChain){
13
+
14
+ INTERFACE.INIT({BOS, INTERFACE, CLI, require});
15
+ //INTERFACE.interface.context=;
16
+ //BOS
17
+ //CLI.textart("logo-header");
18
+ //CLI.print="hello world!";
19
+ //INTERFACE.prompt=".exit";
20
+ //if(!BOS.SYSTEM_DEPLOYED){
21
+
22
+ //console.log("deploying workshop at: "+BOS.FROM_ROOTDIR());
23
+
24
+ //BOS.EXEC_PROCEDURE("deploy-new-workshop"); // do shell script from shell-procedures
25
+
26
+ //}else{
27
+
28
+ //console.log("workshop found at: "+BOS.FROM_ROOTDIR());
29
+
30
+ //}
31
+
32
+ //var factory=new BOS.Workshop(
33
+
34
+ //"sarverott-forest",
35
+
36
+ //BOS.FROM_ROOTDIR()
37
+
38
+ //);
39
+
40
+ //console.log(factory);
41
+
42
+ //BOS.SAVE_CONFIG();
43
+
44
+ //console.log(BOS.TypeList);
45
+
46
+ //BOS.START_CLI_INTERFACE();
47
+ }
48
+
49
+ module.exports=mainProcedure;
50
+
51
+
52
+
53
+
54
+
55
+
56
+
57
+
58
+
59
+ //console.log(BOS);
60
+ //BOS.EXEC_PROCEDURE("purge-workshop");
61
+
62
+ //factory.loadConfiguration("./tmp-enviroment/config");
63
+ //factory.archivesSetup(...factory.configuration.main.archives);
64
+ //factory.forgesSetup(...factory.configuration.main.forges);
65
+
66
+ //factory.archivesSetup({
67
+ // name:"main-archive",
68
+ // path:`${os.homedir()}/tmp-enviroment/workspace/arch`
69
+ //});
70
+
71
+ //factory.forgesSetup({
72
+ // name:"main-forge",
73
+ // path:`${os.homedir()}/tmp-enviroment/workspace/forg`
74
+ //});
75
+ /*
76
+ factory.forgesSetup(
77
+ {
78
+ name:"small-A1-forge",
79
+ path:`/path/to/forge`
80
+ },
81
+ {
82
+ name:"fresh-A9-forge",
83
+ path:`/path/to/forge`
84
+ },
85
+ {
86
+ name:"old-A7-parted-forge",
87
+ path:`/path/to/forge`
88
+ }
89
+ );
90
+ for(var i in factory.items.forges)factory.items.forges[i].loadDirContentAsForge();
91
+ */
92
+ //BOS.LOAD_FILE("./tmp-config.json")
93
+ //var mainforge=factory.getByName("forges", "main-forge");
94
+ //mainforge.createSuperproject("smiling-shadow-all-attempts");
95
+ //mainforge.createProject("smiley-animator", "smiling-shadow-all-attempts");
96
+ //mainforge.createSheme("sketches-and-drawings", "smiling-shadow-all-attempts");
97
+ //factory.getByName("forges", "main-forge").createSuperproject();
98
+
99
+ //console.log(factory);
100
+ //console.log(BOS.getByID("setternet-C1-superproject-29"));
101
+ //factory.saveConfiguration("./tmp-config.json", true);
102
+ //BOS.SAVE();
103
+ //BOS.SAVE_FILE("./tmp-config2.json", true);
104
+ //BOS.SAVE_DIR("./tmp-config", true);
105
+ //BOS.SAVE_DIRTREE("./tmp-config-full", true);
File without changes
package/invoke-exec.js ADDED
File without changes
File without changes
package/main.js ADDED
@@ -0,0 +1,33 @@
1
+ if(require.main===module){
2
+ const path = require('path');
3
+ const fs = require('fs');
4
+
5
+ const invokingChain=process.argv.slice(1).filter(
6
+ (str)=>str!=__filename
7
+ );
8
+ //console.log(process.argv);
9
+
10
+ if(
11
+ fs.existsSync(
12
+ path.join(
13
+ __dirname,
14
+ `invoke-${invokingChain[0]}.js`
15
+ )
16
+ )
17
+ ){
18
+ require(
19
+ path.join(
20
+ __dirname,
21
+ `invoke-${invokingChain[0]}.js`
22
+ )
23
+ )(invokingChain.slice(1));
24
+ }else{
25
+ console.error("UNKNOWN METHOD: ", invokingChain[0]);
26
+ console.log("full command argumenting chain: ", invokingChain);
27
+ console.log("full command: ", process.argv);
28
+ }
29
+ //console.log(invokingChain);
30
+ //
31
+ }else{
32
+ module.exports=require("./system/core/main.js").BOS.INITIALIZE;
33
+ }
package/package.json ADDED
@@ -0,0 +1,38 @@
1
+ {
2
+ "name": "blacksmith-organization-system",
3
+ "version": "0.4.2",
4
+ "description": "Blacksmith Organization System - manage projects folders and files in your multiple workplaces, on servers and in publication repositories",
5
+ "main": "main.js",
6
+ "scripts": {
7
+ "test": "node main.js cli --debug",
8
+ "start": "node main.js cli"
9
+ },
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "git+https://github.com/Sarverott/blacksmith-organization-system.git"
13
+ },
14
+ "keywords": [
15
+ "bos",
16
+ "blacksmith",
17
+ "organization",
18
+ "system",
19
+ "manage",
20
+ "projects"
21
+ ],
22
+ "author": "Sett Sarverott <sett@sarverott.com> (http://sarverott.com)",
23
+ "license": "MIT",
24
+ "bugs": {
25
+ "url": "https://github.com/Sarverott/blacksmith-organization-system/issues"
26
+ },
27
+ "homepage": "https://github.com/Sarverott/blacksmith-organization-system#readme",
28
+ "dependencies": {
29
+ "carnival-toolbox": "^1.2.4"
30
+ },
31
+ "publishConfig": {
32
+ "@sarverott:registry": "https://registry.npmjs.org/"
33
+ },
34
+ "directories": {
35
+ "doc": "docs"
36
+ },
37
+ "devDependencies": {}
38
+ }
@@ -0,0 +1,15 @@
1
+ #!/usr/bin/env bash
2
+
3
+ mkdir ~/.__WORKSHOP ~/.__WORKSHOP/forge ~/.__WORKSHOP/archive ~/.__WORKSHOP/notes ~/.__WORKSHOP/config
4
+ touch ~/.__WORKSHOP/bos-workshop.log
5
+ echo "HELLO_WORLD= new BlacksmithOrganisationSystem Workshop created" > ~/.__WORKSHOP/bos-workshop.log
6
+ echo "CREATE_TIME=$(date)" >> ~/.__WORKSHOP/bos-workshop.log
7
+ bosdirpath=$(pwd)
8
+ echo "CREATE_BASE=$bosdirpath" >> ~/.__WORKSHOP/bos-workshop.log
9
+ cat ~/.__WORKSHOP/bos-workshop.log
10
+ cd ~/.__WORKSHOP
11
+ git clone -l --no-hardlinks "$bosdirpath"
12
+ cp ./blacksmith-organization-system/shell-procedures/start-cli-interface.sh ./RUN
13
+ chmod 511 ./RUN
14
+ ./RUN
15
+ exit
File without changes
File without changes
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env bash
2
+ cd ~/.__WORKSHOP/forge
3
+ mkdir "$1.git"
4
+ cd "$1.git"
5
+ git init --bare
6
+ exit
File without changes
@@ -0,0 +1,22 @@
1
+ #!/usr/bin/env bash
2
+
3
+ #get given destination or drive
4
+ #system to zip
5
+ #clone all opened projects in forge to sarcophags in archive
6
+ #archive to 7z with password protection
7
+ #notes to 7z with password protection
8
+ #config to 7z with password protection
9
+
10
+ #system.zip, notes.7z, config.7z, archive.7z
11
+ # to
12
+ #./bos-backup.<setternet-name>.<user>.<date_time>.rar
13
+
14
+ ### <<< LINE FROM L:20
15
+
16
+ #all logs to
17
+ #./logs-debug/bos-logs.<setternet-name>.<user>.<date_time>.7z
18
+ #with password protection
19
+
20
+ ### MOVE LINE TO L:14 >>> #show path of bos backup file with size and save at end of main log lile
21
+
22
+ exit
File without changes
File without changes
File without changes
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env bash
2
+
3
+ rm -r ~/.__WORKSHOP
4
+ exit
File without changes
File without changes
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env bash
2
+
3
+ #get given workshop server
4
+ #pull all repos and their branches to local archive
5
+ #list archive
6
+
7
+ exit
@@ -0,0 +1,4 @@
1
+ # BRIDGES WITH OTHER SYSTEMS
2
+ > - API integration
3
+ > - injecting extensions
4
+ > - other addons feachers
@@ -0,0 +1,41 @@
1
+ const fs=require("fs");
2
+
3
+ /*class ExtensionControll{
4
+ constructor(){
5
+
6
+ }
7
+ static ACCESSLIST=[];
8
+ static EXTENSIONNAME="";
9
+ static ACCESSFORMAT=[];
10
+ static TYPES=[];
11
+ setup(){}
12
+ ADDACCESS(...insertedAccess){
13
+ for(var i in insertedAccess){
14
+ for
15
+ }
16
+ }
17
+ LOADACCESS(){
18
+
19
+ }
20
+ SELECTACCESS(){
21
+
22
+ }
23
+ }
24
+
25
+ module.exports{
26
+ EC:ExtensionControll,
27
+ extensionList(){
28
+ return {
29
+ facebook:require("./fb-api.js"),
30
+ ftp:require("./ftp-client.js"),
31
+ gdrive:require("./gdrive-tools.js"),
32
+ git:require("./git-toolkit.js"),
33
+ github:require("./github-api.js"),
34
+ instagram:require("./instagram-api.js"),
35
+ soundcloud:require("./soundcloud-api.js"),
36
+ tumblr:require("./tumblr-api.js"),
37
+ youtube:require("./youtube-tools.js")
38
+ }
39
+ }
40
+ }
41
+ */
File without changes
@@ -0,0 +1,20 @@
1
+ const {debug} = require('carnival-toolbox');
2
+
3
+ const {BOS} = require('../core/main.js');
4
+
5
+
6
+ const COMMAND=new BOS.FACTORS.Command("debug");
7
+
8
+ COMMAND.USAGE("cli").DEFINE.GET=()=>{
9
+ debug.log(COMMAND.constructor);
10
+ return COMMAND;
11
+ }
12
+
13
+ COMMAND.USAGE("cli").DEFINE.SET=(exitCode)=>{
14
+ //this.INTERFACE.EXITCODE=exitCode;
15
+ //this.INTERFACE.MAIN.close()
16
+ debug.log(exitCode);
17
+ }
18
+
19
+
20
+ module.exports=COMMAND;
@@ -0,0 +1,19 @@
1
+ const {BOS} = require('../core/main.js');
2
+
3
+ const COMMAND=new BOS.FACTORS.Command("exit");
4
+
5
+ COMMAND.USAGE("cli").DEFINE.GET=()=>{
6
+ const CONTEXT=COMMAND.CONTEXT["cli"];
7
+ CONTEXT.INTERFACE.EXITCODE=0;
8
+ CONTEXT.INTERFACE.MAIN.close();
9
+ return null;
10
+ }
11
+
12
+ COMMAND.USAGE("cli").DEFINE.SET=(exitCode)=>{
13
+ const CONTEXT=COMMAND.CONTEXT["cli"];
14
+ CONTEXT.INTERFACE.EXITCODE=exitCode;
15
+ CONTEXT.INTERFACE.MAIN.close()
16
+ }
17
+
18
+
19
+ module.exports=COMMAND;
File without changes