@cyberismo/cli 0.0.13 → 0.0.14
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.
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
2
|
+
Cyberismo
|
|
3
|
+
Copyright © Cyberismo Ltd and contributors 2024
|
|
4
|
+
This program is free software: you can redistribute it and/or modify it under
|
|
5
|
+
the terms of the GNU Affero General Public License version 3 as published by
|
|
6
|
+
the Free Software Foundation.
|
|
7
|
+
This program is distributed in the hope that it will be useful, but WITHOUT
|
|
8
|
+
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
9
|
+
FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
|
10
|
+
details. You should have received a copy of the GNU Affero General Public
|
|
11
|
+
License along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
11
12
|
*/
|
|
12
13
|
export declare class ResourceTypeParser {
|
|
13
14
|
private static parseTypes;
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
2
|
+
Cyberismo
|
|
3
|
+
Copyright © Cyberismo Ltd and contributors 2024
|
|
4
|
+
This program is free software: you can redistribute it and/or modify it under
|
|
5
|
+
the terms of the GNU Affero General Public License version 3 as published by
|
|
6
|
+
the Free Software Foundation.
|
|
7
|
+
This program is distributed in the hope that it will be useful, but WITHOUT
|
|
8
|
+
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
9
|
+
FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
|
10
|
+
details. You should have received a copy of the GNU Affero General Public
|
|
11
|
+
License along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
11
12
|
*/
|
|
12
13
|
// Resource types that have commands affecting them.
|
|
13
14
|
const Resources = [
|
|
15
|
+
'calculation',
|
|
14
16
|
'cardType',
|
|
15
17
|
'fieldType',
|
|
16
18
|
'graphModel',
|
|
@@ -22,6 +24,7 @@ const Resources = [
|
|
|
22
24
|
];
|
|
23
25
|
// Lookup table for plural forms for command targets that have plural form commands.
|
|
24
26
|
const pluralLookUpForResources = new Map([
|
|
27
|
+
['calculation', 'calculations'],
|
|
25
28
|
['cardType', 'cardTypes'],
|
|
26
29
|
['fieldType', 'fieldTypes'],
|
|
27
30
|
['graphModel', 'graphModels'],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resource-type-parser.js","sourceRoot":"","sources":["../src/resource-type-parser.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"resource-type-parser.js","sourceRoot":"","sources":["../src/resource-type-parser.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;EAWE;AAEF,oDAAoD;AACpD,MAAM,SAAS,GAAG;IAChB,aAAa;IACb,UAAU;IACV,WAAW;IACX,YAAY;IACZ,WAAW;IACX,UAAU;IACV,QAAQ;IACR,UAAU;IACV,UAAU;CACX,CAAC;AAEF,oFAAoF;AACpF,MAAM,wBAAwB,GAAG,IAAI,GAAG,CAAC;IACvC,CAAC,aAAa,EAAE,cAAc,CAAC;IAC/B,CAAC,UAAU,EAAE,WAAW,CAAC;IACzB,CAAC,WAAW,EAAE,YAAY,CAAC;IAC3B,CAAC,YAAY,EAAE,aAAa,CAAC;IAC7B,CAAC,WAAW,EAAE,YAAY,CAAC;IAC3B,CAAC,UAAU,EAAE,WAAW,CAAC;IACzB,CAAC,QAAQ,EAAE,SAAS,CAAC;IACrB,CAAC,UAAU,EAAE,WAAW,CAAC;IACzB,CAAC,UAAU,EAAE,WAAW,CAAC;CAC1B,CAAC,CAAC;AAEH,kDAAkD;AAClD,iCAAiC;A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C,gBAAgB,CAAC,IAAY;QACzC,OAAO,kBAAkB,CAAC,iBAAiB,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;IAC9D,CAAC;IAED;;;;OAIG;IACI,MAAM,CAAC,gBAAgB,CAAC,IAAY;QACzC,OAAO,kBAAkB,CAAC,iBAAiB,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;IAC9D,CAAC;IAED;;;;OAIG;IACI,MAAM,CAAC,cAAc,CAAC,IAAY;QACvC,OAAO,kBAAkB,CAAC,iBAAiB,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;IAC5D,CAAC;CACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cyberismo/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.14",
|
|
4
4
|
"description": "CLI tool to handle tasks.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
"cli-progress": "^3.12.0",
|
|
21
21
|
"commander": "^14.0.1",
|
|
22
22
|
"dotenv": "^17.2.2",
|
|
23
|
-
"@cyberismo/backend": "0.0.
|
|
24
|
-
"@cyberismo/data-handler": "0.0.
|
|
23
|
+
"@cyberismo/backend": "0.0.14",
|
|
24
|
+
"@cyberismo/data-handler": "0.0.14"
|
|
25
25
|
},
|
|
26
26
|
"types": "dist/index.d.ts",
|
|
27
27
|
"type": "module",
|
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
2
|
+
Cyberismo
|
|
3
|
+
Copyright © Cyberismo Ltd and contributors 2024
|
|
4
|
+
This program is free software: you can redistribute it and/or modify it under
|
|
5
|
+
the terms of the GNU Affero General Public License version 3 as published by
|
|
6
|
+
the Free Software Foundation.
|
|
7
|
+
This program is distributed in the hope that it will be useful, but WITHOUT
|
|
8
|
+
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
9
|
+
FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
|
10
|
+
details. You should have received a copy of the GNU Affero General Public
|
|
11
|
+
License along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
11
12
|
*/
|
|
12
13
|
|
|
13
14
|
// Resource types that have commands affecting them.
|
|
14
15
|
const Resources = [
|
|
16
|
+
'calculation',
|
|
15
17
|
'cardType',
|
|
16
18
|
'fieldType',
|
|
17
19
|
'graphModel',
|
|
@@ -24,6 +26,7 @@ const Resources = [
|
|
|
24
26
|
|
|
25
27
|
// Lookup table for plural forms for command targets that have plural form commands.
|
|
26
28
|
const pluralLookUpForResources = new Map([
|
|
29
|
+
['calculation', 'calculations'],
|
|
27
30
|
['cardType', 'cardTypes'],
|
|
28
31
|
['fieldType', 'fieldTypes'],
|
|
29
32
|
['graphModel', 'graphModels'],
|