eolang 0.1.0 → 0.2.0
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.
- package/README.md +1 -0
- package/package.json +5 -2
- package/src/commands/audit.js +34 -0
- package/src/eoc.js +9 -2
- package/src/version.js +1 -1
package/README.md
CHANGED
|
@@ -40,6 +40,7 @@ You can also do many other things with `eoc` commands
|
|
|
40
40
|
|
|
41
41
|
There are also commands that help manipulate with XMIR and EO sources:
|
|
42
42
|
|
|
43
|
+
* `audit` inspects all packages and report their status
|
|
43
44
|
* `translate` converts Java/C++/Python/etc. program to EO program
|
|
44
45
|
* `demu` removes `cage` and `memory` objects
|
|
45
46
|
* `dejump` removes `goto` objects
|
package/package.json
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eolang",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"author": "Yegor Bugayenko",
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"author": "Yegor Bugayenko <yegor256@gmail.com> (https://www.yegor256.com/)",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": "objectionary/eoc",
|
|
7
|
+
"description": "A collection of command line tools for EOLANG: compiling, parsing, transpiling to other languages, optimizing, and analyzing",
|
|
8
|
+
"homepage": "https://github.com/objectionary/eoc",
|
|
7
9
|
"keywords": [
|
|
8
10
|
"cli",
|
|
9
11
|
"command",
|
|
@@ -14,6 +16,7 @@
|
|
|
14
16
|
"objectionary",
|
|
15
17
|
"oop"
|
|
16
18
|
],
|
|
19
|
+
"main": "eoc",
|
|
17
20
|
"bin": {
|
|
18
21
|
"eoc": "./src/eoc.js"
|
|
19
22
|
},
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
#! /usr/bin/env node
|
|
2
|
+
/*
|
|
3
|
+
* The MIT License (MIT)
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) 2022 Yegor Bugayenko
|
|
6
|
+
*
|
|
7
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
8
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
9
|
+
* in the Software without restriction, including without limitation the rights
|
|
10
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
11
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
12
|
+
* furnished to do so, subject to the following conditions:
|
|
13
|
+
*
|
|
14
|
+
* The above copyright notice and this permission notice shall be included
|
|
15
|
+
* in all copies or substantial portions of the Software.
|
|
16
|
+
*
|
|
17
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
18
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
19
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE
|
|
20
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
21
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
22
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
23
|
+
* SOFTWARE.
|
|
24
|
+
*/
|
|
25
|
+
|
|
26
|
+
const mvnw = require('../mvnw');
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Command to audit all packages.
|
|
30
|
+
* @param {Hash} opts - All options
|
|
31
|
+
*/
|
|
32
|
+
module.exports = function audit(opts) {
|
|
33
|
+
mvnw(['--version']);
|
|
34
|
+
};
|
package/src/eoc.js
CHANGED
|
@@ -35,11 +35,18 @@ program
|
|
|
35
35
|
.option('-s, --sources <path>', 'directory with .EO sources', '.')
|
|
36
36
|
.option('-t, --target <path>', 'directory with all generated files', '.eoc');
|
|
37
37
|
|
|
38
|
+
program.command('audit')
|
|
39
|
+
.description('inspects all packages and reports their status')
|
|
40
|
+
.action((str, options) => {
|
|
41
|
+
const audit = require('./commands/audit');
|
|
42
|
+
audit(program.opts());
|
|
43
|
+
});
|
|
44
|
+
|
|
38
45
|
program.command('clean')
|
|
39
46
|
.description('delete all temporary files')
|
|
40
47
|
.action((str, options) => {
|
|
41
|
-
const
|
|
42
|
-
|
|
48
|
+
const clean = require('./commands/clean');
|
|
49
|
+
clean(program.opts());
|
|
43
50
|
});
|
|
44
51
|
|
|
45
52
|
program.command('register')
|
package/src/version.js
CHANGED