legispro-cli 1.0.8 → 1.0.9
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/LICENSE +21 -21
- package/README.md +3 -5
- package/bin/dev.cmd +3 -3
- package/bin/dev.js +5 -5
- package/bin/run.cmd +3 -3
- package/bin/run.js +5 -5
- package/dist/commands/collection/create.js +6 -6
- package/dist/commands/deploy/index.js +5 -1
- package/dist/lib/shell.d.ts +1 -1
- package/dist/lib/shell.js +8 -0
- package/dist/lib/xml-templates.js +56 -56
- package/oclif.manifest.json +99 -98
- package/package.json +102 -102
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2019 Salesforce
|
|
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.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2019 Salesforce
|
|
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
CHANGED
|
@@ -13,7 +13,6 @@ LegisPro CLI - test
|
|
|
13
13
|
* [Usage](#usage)
|
|
14
14
|
* [Commands](#commands)
|
|
15
15
|
<!-- tocstop -->
|
|
16
|
-
|
|
17
16
|
# Usage
|
|
18
17
|
<!-- usage -->
|
|
19
18
|
```sh-session
|
|
@@ -21,14 +20,13 @@ $ npm install -g legispro-cli
|
|
|
21
20
|
$ lp COMMAND
|
|
22
21
|
running command...
|
|
23
22
|
$ lp (--version)
|
|
24
|
-
legispro-cli/1.0.
|
|
23
|
+
legispro-cli/1.0.9 darwin-arm64 node-v24.0.1
|
|
25
24
|
$ lp --help [COMMAND]
|
|
26
25
|
USAGE
|
|
27
26
|
$ lp COMMAND
|
|
28
27
|
...
|
|
29
28
|
```
|
|
30
29
|
<!-- usagestop -->
|
|
31
|
-
|
|
32
30
|
# Commands
|
|
33
31
|
<!-- commands -->
|
|
34
32
|
* [`lp backup create`](#lp-backup-create)
|
|
@@ -374,11 +372,11 @@ Executes a docker deployment
|
|
|
374
372
|
|
|
375
373
|
```
|
|
376
374
|
USAGE
|
|
377
|
-
$ lp deploy [-p <value>] [-e ola-dev|ola-qa]
|
|
375
|
+
$ lp deploy [-p <value>] [-e ola-dev|ola-qa|ola-linux-dev]
|
|
378
376
|
|
|
379
377
|
FLAGS
|
|
380
378
|
-e, --env=<option> Environment variables file
|
|
381
|
-
<options: ola-dev|ola-qa>
|
|
379
|
+
<options: ola-dev|ola-qa|ola-linux-dev>
|
|
382
380
|
-p, --installationPath=<value> [default: C:/legispro/deploy/] Server installation path
|
|
383
381
|
|
|
384
382
|
DESCRIPTION
|
package/bin/dev.cmd
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
@echo off
|
|
2
|
-
|
|
3
|
-
node --loader ts-node/esm --no-warnings=ExperimentalWarning "%~dp0\dev" %*
|
|
1
|
+
@echo off
|
|
2
|
+
|
|
3
|
+
node --loader ts-node/esm --no-warnings=ExperimentalWarning "%~dp0\dev" %*
|
package/bin/dev.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
#!/usr/bin/env -S node --loader ts-node/esm --disable-warning=ExperimentalWarning
|
|
2
|
-
|
|
3
|
-
import {execute} from '@oclif/core'
|
|
4
|
-
|
|
5
|
-
await execute({development: true, dir: import.meta.url})
|
|
1
|
+
#!/usr/bin/env -S node --loader ts-node/esm --disable-warning=ExperimentalWarning
|
|
2
|
+
|
|
3
|
+
import {execute} from '@oclif/core'
|
|
4
|
+
|
|
5
|
+
await execute({development: true, dir: import.meta.url})
|
package/bin/run.cmd
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
@echo off
|
|
2
|
-
|
|
3
|
-
node "%~dp0\run" %*
|
|
1
|
+
@echo off
|
|
2
|
+
|
|
3
|
+
node "%~dp0\run" %*
|
package/bin/run.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
import {execute} from '@oclif/core'
|
|
4
|
-
|
|
5
|
-
await execute({dir: import.meta.url})
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
import {execute} from '@oclif/core'
|
|
4
|
+
|
|
5
|
+
await execute({dir: import.meta.url})
|
|
@@ -76,12 +76,12 @@ class CollectionCreate extends Command {
|
|
|
76
76
|
// 2. Add a .project.xml file to it
|
|
77
77
|
let project_uri = '/db/repository/' + flags.name + '/.project.xml';
|
|
78
78
|
let project_xml_mode = 'rw-r--r--';
|
|
79
|
-
let projectXml = `<project xmlns="http://www.xcential.com/schemas/docs">
|
|
80
|
-
<name>${flags.name}</name>
|
|
81
|
-
<title>${flags.title}</title>
|
|
82
|
-
<baseURI>${flags.baseURI}</baseURI>
|
|
83
|
-
<defaultExt>${flags.defaultExt}</defaultExt>
|
|
84
|
-
<type>${flags.type}</type>
|
|
79
|
+
let projectXml = `<project xmlns="http://www.xcential.com/schemas/docs">
|
|
80
|
+
<name>${flags.name}</name>
|
|
81
|
+
<title>${flags.title}</title>
|
|
82
|
+
<baseURI>${flags.baseURI}</baseURI>
|
|
83
|
+
<defaultExt>${flags.defaultExt}</defaultExt>
|
|
84
|
+
<type>${flags.type}</type>
|
|
85
85
|
</project>`;
|
|
86
86
|
const buffer = Buffer.from(projectXml, "utf-8");
|
|
87
87
|
let project_xml_document = {
|
|
@@ -5,7 +5,7 @@ import { copySources } from '../../lib/shell.js';
|
|
|
5
5
|
import { NodeSSH } from 'node-ssh';
|
|
6
6
|
import path from 'path';
|
|
7
7
|
import fs from 'fs-extra';
|
|
8
|
-
const ENV_OPTIONS = ['ola-dev', 'ola-qa'];
|
|
8
|
+
const ENV_OPTIONS = ['ola-dev', 'ola-qa', 'ola-linux-dev'];
|
|
9
9
|
export default class DeployPrepare extends Command {
|
|
10
10
|
static description = 'Executes a docker deployment';
|
|
11
11
|
static examples = [`<%= config.bin %> <%= command.id %>`];
|
|
@@ -91,6 +91,10 @@ export default class DeployPrepare extends Command {
|
|
|
91
91
|
host1 = 'dpmsdocktest01';
|
|
92
92
|
host2 = 'dpmsdocktest02';
|
|
93
93
|
break;
|
|
94
|
+
case 'ola-linux-dev':
|
|
95
|
+
host1 = 'dpmsdockdev01';
|
|
96
|
+
host2 = 'dpmsdockdev02';
|
|
97
|
+
break;
|
|
94
98
|
}
|
|
95
99
|
const release = data.find(i => i.tag_name === tag);
|
|
96
100
|
const { sourcesDir, tmpPath } = await downloadAsset(oktokit, env.gitRepository, release);
|
package/dist/lib/shell.d.ts
CHANGED
package/dist/lib/shell.js
CHANGED
|
@@ -42,6 +42,14 @@ export const copySources = async ({ print, user, sourcesDir, installationFolder,
|
|
|
42
42
|
host = 'dpmsdocktest01';
|
|
43
43
|
host2 = 'dpmsdocktest02';
|
|
44
44
|
break;
|
|
45
|
+
case 'ola-linux-dev':
|
|
46
|
+
envFiles1.push('env.ola-linux-dev');
|
|
47
|
+
envFiles2.push('env.ola-linux-dev');
|
|
48
|
+
envFiles1.push('env.ola-linux-dev-legispro');
|
|
49
|
+
envFiles2.push('env.ola-linux-dev-dpms');
|
|
50
|
+
host = 'dpmsdockdev01';
|
|
51
|
+
host2 = 'dpmsdockdev02';
|
|
52
|
+
break;
|
|
45
53
|
}
|
|
46
54
|
const cmd1 = `scp -r ${customPath} ${user}@${host}:${scpPath}`;
|
|
47
55
|
const cmd2 = `scp -r ${customPath} ${user}@${host2}:${scpPath}`;
|
|
@@ -2,61 +2,61 @@ export class XmlTemplates {
|
|
|
2
2
|
/**
|
|
3
3
|
* Scratchpad XML template literal
|
|
4
4
|
*/
|
|
5
|
-
static scratchpad = `<?xml version="1.0" encoding="UTF-8"?>
|
|
6
|
-
<!-- This document is datafile used by LegisPro for the scratchpad feature. It uses the akomaNtoso structure and elements. But, the document it is not meant to be valid against the Akoma Ntoso schema. -->
|
|
7
|
-
<akomaNtoso xmlns="http://docs.oasis-open.org/legaldocml/ns/akn/3.0" xmlns:akn="http://docs.oasis-open.org/legaldocml/ns/akn/3.0" xmlns:orml="http://schemas.oregon.gov/orml" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://docs.oasis-open.org/legaldocml/ns/akn/3.0 akomantoso30.proposed.xsd http://www.w3.org/1999/xhtml akn-table-module.xsd">
|
|
8
|
-
<portion includedIn="#legispro">
|
|
9
|
-
<meta>
|
|
10
|
-
<identification source="#legispro">
|
|
11
|
-
<FRBRWork>
|
|
12
|
-
<FRBRthis value="/akn/us-or/data/scratchpad/{{username}}" />
|
|
13
|
-
<FRBRuri value="/akn/us-or/data/scratchpad/{{username}}" />
|
|
14
|
-
<FRBRdate name="fileCreated" date="2021-12-07" />
|
|
15
|
-
<FRBRauthor href="#legispro" />
|
|
16
|
-
<FRBRcountry value="US-OR" />
|
|
17
|
-
<FRBRname value="Scratchpad" />
|
|
18
|
-
</FRBRWork>
|
|
19
|
-
<FRBRExpression>
|
|
20
|
-
<FRBRthis value="/akn/us-or/data/scratchpad/{{username}}" />
|
|
21
|
-
<FRBRuri value="/akn/us-or/data/scratchpad/{{username}}" />
|
|
22
|
-
<FRBRdate name="fileCreated" date="2021-12-07" />
|
|
23
|
-
<FRBRauthor href="#legispro" />
|
|
24
|
-
<FRBRlanguage language="eng" />
|
|
25
|
-
</FRBRExpression>
|
|
26
|
-
<FRBRManifestation>
|
|
27
|
-
<FRBRthis value="/akn/us-or/data/scratchpad/demo/!main.xml" />
|
|
28
|
-
<FRBRuri value="/akn/us-or/data/scratchpad/demo/!main.akn" />
|
|
29
|
-
<FRBRdate name="fileCreated" date="2021-12-07" />
|
|
30
|
-
<FRBRauthor href="#OLA" />
|
|
31
|
-
<FRBRformat value="application/akn+xml" />
|
|
32
|
-
</FRBRManifestation>
|
|
33
|
-
</identification>
|
|
34
|
-
<references source="#legispro">
|
|
35
|
-
<TLCProcess eId="legispro" href="/akn/xcential/taxonomy/process/legispro" showAs="LegisPro" />
|
|
36
|
-
<TLCProcess eId="conversion" href="/akn/xcential/taxonomy/process/conversion" showAs="Conversion" />
|
|
37
|
-
<TLCOrganization eId="OLA" href="http://www.oregonlegislature.gov/" showAs="OLA" />
|
|
38
|
-
</references>
|
|
39
|
-
</meta>
|
|
40
|
-
<portionBody>
|
|
41
|
-
<orml:scratchpadFragment>
|
|
42
|
-
<?placeholder {Paste Content Here}?>
|
|
43
|
-
</orml:scratchpadFragment>
|
|
44
|
-
<orml:scratchpadFragment>
|
|
45
|
-
<?placeholder {Paste Content Here}?>
|
|
46
|
-
</orml:scratchpadFragment>
|
|
47
|
-
<orml:scratchpadFragment>
|
|
48
|
-
<?placeholder {Paste Content Here}?>
|
|
49
|
-
</orml:scratchpadFragment>
|
|
50
|
-
<orml:scratchpadFragment>
|
|
51
|
-
<?placeholder {Paste Content Here}?>
|
|
52
|
-
</orml:scratchpadFragment>
|
|
53
|
-
<orml:scratchpadFragment>
|
|
54
|
-
<?placeholder {Paste Content Here}?>
|
|
55
|
-
</orml:scratchpadFragment>
|
|
56
|
-
<orml:scratchpadFragment>
|
|
57
|
-
<?placeholder {Paste Content Here}?>
|
|
58
|
-
</orml:scratchpadFragment>
|
|
59
|
-
</portionBody>
|
|
60
|
-
</portion>
|
|
5
|
+
static scratchpad = `<?xml version="1.0" encoding="UTF-8"?>
|
|
6
|
+
<!-- This document is datafile used by LegisPro for the scratchpad feature. It uses the akomaNtoso structure and elements. But, the document it is not meant to be valid against the Akoma Ntoso schema. -->
|
|
7
|
+
<akomaNtoso xmlns="http://docs.oasis-open.org/legaldocml/ns/akn/3.0" xmlns:akn="http://docs.oasis-open.org/legaldocml/ns/akn/3.0" xmlns:orml="http://schemas.oregon.gov/orml" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://docs.oasis-open.org/legaldocml/ns/akn/3.0 akomantoso30.proposed.xsd http://www.w3.org/1999/xhtml akn-table-module.xsd">
|
|
8
|
+
<portion includedIn="#legispro">
|
|
9
|
+
<meta>
|
|
10
|
+
<identification source="#legispro">
|
|
11
|
+
<FRBRWork>
|
|
12
|
+
<FRBRthis value="/akn/us-or/data/scratchpad/{{username}}" />
|
|
13
|
+
<FRBRuri value="/akn/us-or/data/scratchpad/{{username}}" />
|
|
14
|
+
<FRBRdate name="fileCreated" date="2021-12-07" />
|
|
15
|
+
<FRBRauthor href="#legispro" />
|
|
16
|
+
<FRBRcountry value="US-OR" />
|
|
17
|
+
<FRBRname value="Scratchpad" />
|
|
18
|
+
</FRBRWork>
|
|
19
|
+
<FRBRExpression>
|
|
20
|
+
<FRBRthis value="/akn/us-or/data/scratchpad/{{username}}" />
|
|
21
|
+
<FRBRuri value="/akn/us-or/data/scratchpad/{{username}}" />
|
|
22
|
+
<FRBRdate name="fileCreated" date="2021-12-07" />
|
|
23
|
+
<FRBRauthor href="#legispro" />
|
|
24
|
+
<FRBRlanguage language="eng" />
|
|
25
|
+
</FRBRExpression>
|
|
26
|
+
<FRBRManifestation>
|
|
27
|
+
<FRBRthis value="/akn/us-or/data/scratchpad/demo/!main.xml" />
|
|
28
|
+
<FRBRuri value="/akn/us-or/data/scratchpad/demo/!main.akn" />
|
|
29
|
+
<FRBRdate name="fileCreated" date="2021-12-07" />
|
|
30
|
+
<FRBRauthor href="#OLA" />
|
|
31
|
+
<FRBRformat value="application/akn+xml" />
|
|
32
|
+
</FRBRManifestation>
|
|
33
|
+
</identification>
|
|
34
|
+
<references source="#legispro">
|
|
35
|
+
<TLCProcess eId="legispro" href="/akn/xcential/taxonomy/process/legispro" showAs="LegisPro" />
|
|
36
|
+
<TLCProcess eId="conversion" href="/akn/xcential/taxonomy/process/conversion" showAs="Conversion" />
|
|
37
|
+
<TLCOrganization eId="OLA" href="http://www.oregonlegislature.gov/" showAs="OLA" />
|
|
38
|
+
</references>
|
|
39
|
+
</meta>
|
|
40
|
+
<portionBody>
|
|
41
|
+
<orml:scratchpadFragment>
|
|
42
|
+
<?placeholder {Paste Content Here}?>
|
|
43
|
+
</orml:scratchpadFragment>
|
|
44
|
+
<orml:scratchpadFragment>
|
|
45
|
+
<?placeholder {Paste Content Here}?>
|
|
46
|
+
</orml:scratchpadFragment>
|
|
47
|
+
<orml:scratchpadFragment>
|
|
48
|
+
<?placeholder {Paste Content Here}?>
|
|
49
|
+
</orml:scratchpadFragment>
|
|
50
|
+
<orml:scratchpadFragment>
|
|
51
|
+
<?placeholder {Paste Content Here}?>
|
|
52
|
+
</orml:scratchpadFragment>
|
|
53
|
+
<orml:scratchpadFragment>
|
|
54
|
+
<?placeholder {Paste Content Here}?>
|
|
55
|
+
</orml:scratchpadFragment>
|
|
56
|
+
<orml:scratchpadFragment>
|
|
57
|
+
<?placeholder {Paste Content Here}?>
|
|
58
|
+
</orml:scratchpadFragment>
|
|
59
|
+
</portionBody>
|
|
60
|
+
</portion>
|
|
61
61
|
</akomaNtoso>`;
|
|
62
62
|
}
|
package/oclif.manifest.json
CHANGED
|
@@ -48,6 +48,102 @@
|
|
|
48
48
|
"list.js"
|
|
49
49
|
]
|
|
50
50
|
},
|
|
51
|
+
"db:init": {
|
|
52
|
+
"aliases": [],
|
|
53
|
+
"args": {},
|
|
54
|
+
"description": "Initialize a new database",
|
|
55
|
+
"examples": [
|
|
56
|
+
"$ legispro db:init"
|
|
57
|
+
],
|
|
58
|
+
"flags": {},
|
|
59
|
+
"hasDynamicHelp": false,
|
|
60
|
+
"hiddenAliases": [],
|
|
61
|
+
"id": "db:init",
|
|
62
|
+
"pluginAlias": "legispro-cli",
|
|
63
|
+
"pluginName": "legispro-cli",
|
|
64
|
+
"pluginType": "core",
|
|
65
|
+
"strict": true,
|
|
66
|
+
"enableJsonFlag": false,
|
|
67
|
+
"isESM": true,
|
|
68
|
+
"relativePath": [
|
|
69
|
+
"dist",
|
|
70
|
+
"commands",
|
|
71
|
+
"db",
|
|
72
|
+
"init.js"
|
|
73
|
+
]
|
|
74
|
+
},
|
|
75
|
+
"db:memory": {
|
|
76
|
+
"aliases": [],
|
|
77
|
+
"args": {},
|
|
78
|
+
"description": "Database memory status",
|
|
79
|
+
"examples": [
|
|
80
|
+
"$ legispro db:memory"
|
|
81
|
+
],
|
|
82
|
+
"flags": {},
|
|
83
|
+
"hasDynamicHelp": false,
|
|
84
|
+
"hiddenAliases": [],
|
|
85
|
+
"id": "db:memory",
|
|
86
|
+
"pluginAlias": "legispro-cli",
|
|
87
|
+
"pluginName": "legispro-cli",
|
|
88
|
+
"pluginType": "core",
|
|
89
|
+
"strict": true,
|
|
90
|
+
"enableJsonFlag": false,
|
|
91
|
+
"isESM": true,
|
|
92
|
+
"relativePath": [
|
|
93
|
+
"dist",
|
|
94
|
+
"commands",
|
|
95
|
+
"db",
|
|
96
|
+
"memory.js"
|
|
97
|
+
]
|
|
98
|
+
},
|
|
99
|
+
"db:uptime": {
|
|
100
|
+
"aliases": [],
|
|
101
|
+
"args": {},
|
|
102
|
+
"description": "Get database uptime",
|
|
103
|
+
"examples": [
|
|
104
|
+
"$ legispro db:uptime"
|
|
105
|
+
],
|
|
106
|
+
"flags": {},
|
|
107
|
+
"hasDynamicHelp": false,
|
|
108
|
+
"hiddenAliases": [],
|
|
109
|
+
"id": "db:uptime",
|
|
110
|
+
"pluginAlias": "legispro-cli",
|
|
111
|
+
"pluginName": "legispro-cli",
|
|
112
|
+
"pluginType": "core",
|
|
113
|
+
"strict": true,
|
|
114
|
+
"enableJsonFlag": false,
|
|
115
|
+
"isESM": true,
|
|
116
|
+
"relativePath": [
|
|
117
|
+
"dist",
|
|
118
|
+
"commands",
|
|
119
|
+
"db",
|
|
120
|
+
"uptime.js"
|
|
121
|
+
]
|
|
122
|
+
},
|
|
123
|
+
"db:version": {
|
|
124
|
+
"aliases": [],
|
|
125
|
+
"args": {},
|
|
126
|
+
"description": "Get database version",
|
|
127
|
+
"examples": [
|
|
128
|
+
"$ legispro db:version"
|
|
129
|
+
],
|
|
130
|
+
"flags": {},
|
|
131
|
+
"hasDynamicHelp": false,
|
|
132
|
+
"hiddenAliases": [],
|
|
133
|
+
"id": "db:version",
|
|
134
|
+
"pluginAlias": "legispro-cli",
|
|
135
|
+
"pluginName": "legispro-cli",
|
|
136
|
+
"pluginType": "core",
|
|
137
|
+
"strict": true,
|
|
138
|
+
"enableJsonFlag": false,
|
|
139
|
+
"isESM": true,
|
|
140
|
+
"relativePath": [
|
|
141
|
+
"dist",
|
|
142
|
+
"commands",
|
|
143
|
+
"db",
|
|
144
|
+
"version.js"
|
|
145
|
+
]
|
|
146
|
+
},
|
|
51
147
|
"config:get": {
|
|
52
148
|
"aliases": [],
|
|
53
149
|
"args": {},
|
|
@@ -571,102 +667,6 @@
|
|
|
571
667
|
"upload.js"
|
|
572
668
|
]
|
|
573
669
|
},
|
|
574
|
-
"db:init": {
|
|
575
|
-
"aliases": [],
|
|
576
|
-
"args": {},
|
|
577
|
-
"description": "Initialize a new database",
|
|
578
|
-
"examples": [
|
|
579
|
-
"$ legispro db:init"
|
|
580
|
-
],
|
|
581
|
-
"flags": {},
|
|
582
|
-
"hasDynamicHelp": false,
|
|
583
|
-
"hiddenAliases": [],
|
|
584
|
-
"id": "db:init",
|
|
585
|
-
"pluginAlias": "legispro-cli",
|
|
586
|
-
"pluginName": "legispro-cli",
|
|
587
|
-
"pluginType": "core",
|
|
588
|
-
"strict": true,
|
|
589
|
-
"enableJsonFlag": false,
|
|
590
|
-
"isESM": true,
|
|
591
|
-
"relativePath": [
|
|
592
|
-
"dist",
|
|
593
|
-
"commands",
|
|
594
|
-
"db",
|
|
595
|
-
"init.js"
|
|
596
|
-
]
|
|
597
|
-
},
|
|
598
|
-
"db:memory": {
|
|
599
|
-
"aliases": [],
|
|
600
|
-
"args": {},
|
|
601
|
-
"description": "Database memory status",
|
|
602
|
-
"examples": [
|
|
603
|
-
"$ legispro db:memory"
|
|
604
|
-
],
|
|
605
|
-
"flags": {},
|
|
606
|
-
"hasDynamicHelp": false,
|
|
607
|
-
"hiddenAliases": [],
|
|
608
|
-
"id": "db:memory",
|
|
609
|
-
"pluginAlias": "legispro-cli",
|
|
610
|
-
"pluginName": "legispro-cli",
|
|
611
|
-
"pluginType": "core",
|
|
612
|
-
"strict": true,
|
|
613
|
-
"enableJsonFlag": false,
|
|
614
|
-
"isESM": true,
|
|
615
|
-
"relativePath": [
|
|
616
|
-
"dist",
|
|
617
|
-
"commands",
|
|
618
|
-
"db",
|
|
619
|
-
"memory.js"
|
|
620
|
-
]
|
|
621
|
-
},
|
|
622
|
-
"db:uptime": {
|
|
623
|
-
"aliases": [],
|
|
624
|
-
"args": {},
|
|
625
|
-
"description": "Get database uptime",
|
|
626
|
-
"examples": [
|
|
627
|
-
"$ legispro db:uptime"
|
|
628
|
-
],
|
|
629
|
-
"flags": {},
|
|
630
|
-
"hasDynamicHelp": false,
|
|
631
|
-
"hiddenAliases": [],
|
|
632
|
-
"id": "db:uptime",
|
|
633
|
-
"pluginAlias": "legispro-cli",
|
|
634
|
-
"pluginName": "legispro-cli",
|
|
635
|
-
"pluginType": "core",
|
|
636
|
-
"strict": true,
|
|
637
|
-
"enableJsonFlag": false,
|
|
638
|
-
"isESM": true,
|
|
639
|
-
"relativePath": [
|
|
640
|
-
"dist",
|
|
641
|
-
"commands",
|
|
642
|
-
"db",
|
|
643
|
-
"uptime.js"
|
|
644
|
-
]
|
|
645
|
-
},
|
|
646
|
-
"db:version": {
|
|
647
|
-
"aliases": [],
|
|
648
|
-
"args": {},
|
|
649
|
-
"description": "Get database version",
|
|
650
|
-
"examples": [
|
|
651
|
-
"$ legispro db:version"
|
|
652
|
-
],
|
|
653
|
-
"flags": {},
|
|
654
|
-
"hasDynamicHelp": false,
|
|
655
|
-
"hiddenAliases": [],
|
|
656
|
-
"id": "db:version",
|
|
657
|
-
"pluginAlias": "legispro-cli",
|
|
658
|
-
"pluginName": "legispro-cli",
|
|
659
|
-
"pluginType": "core",
|
|
660
|
-
"strict": true,
|
|
661
|
-
"enableJsonFlag": false,
|
|
662
|
-
"isESM": true,
|
|
663
|
-
"relativePath": [
|
|
664
|
-
"dist",
|
|
665
|
-
"commands",
|
|
666
|
-
"db",
|
|
667
|
-
"version.js"
|
|
668
|
-
]
|
|
669
|
-
},
|
|
670
670
|
"deploy": {
|
|
671
671
|
"aliases": [],
|
|
672
672
|
"args": {},
|
|
@@ -692,7 +692,8 @@
|
|
|
692
692
|
"multiple": false,
|
|
693
693
|
"options": [
|
|
694
694
|
"ola-dev",
|
|
695
|
-
"ola-qa"
|
|
695
|
+
"ola-qa",
|
|
696
|
+
"ola-linux-dev"
|
|
696
697
|
],
|
|
697
698
|
"type": "option"
|
|
698
699
|
}
|
|
@@ -1497,5 +1498,5 @@
|
|
|
1497
1498
|
]
|
|
1498
1499
|
}
|
|
1499
1500
|
},
|
|
1500
|
-
"version": "1.0.
|
|
1501
|
+
"version": "1.0.9"
|
|
1501
1502
|
}
|
package/package.json
CHANGED
|
@@ -1,102 +1,102 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "legispro-cli",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "LegisPro CLI",
|
|
5
|
-
"author": "bmckinney",
|
|
6
|
-
"type": "module",
|
|
7
|
-
"bin": {
|
|
8
|
-
"legispro": "./bin/run.js"
|
|
9
|
-
},
|
|
10
|
-
"homepage": "https://github.com/Xcential-Corporation/legispro-cli",
|
|
11
|
-
"license": "MIT",
|
|
12
|
-
"main": "dist/index.js",
|
|
13
|
-
"files": [
|
|
14
|
-
"./bin",
|
|
15
|
-
"./dist",
|
|
16
|
-
"./oclif.manifest.json"
|
|
17
|
-
],
|
|
18
|
-
"dependencies": {
|
|
19
|
-
"@oclif/core": "^4",
|
|
20
|
-
"@oclif/plugin-help": "^6",
|
|
21
|
-
"@oclif/plugin-plugins": "^5",
|
|
22
|
-
"@octokit/core": "^6.1.4",
|
|
23
|
-
"@octokit/plugin-rest-endpoint-methods": "^13.3.1",
|
|
24
|
-
"ascii-table": "^0.0.9",
|
|
25
|
-
"axios": "^1.8.1",
|
|
26
|
-
"chalk": "^5.4.1",
|
|
27
|
-
"enquirer": "^2.4.1",
|
|
28
|
-
"fs-extra": "^11.3.0",
|
|
29
|
-
"node-ssh": "^13.2.0",
|
|
30
|
-
"ora": "^3.4.0",
|
|
31
|
-
"rclone.js": "^0.6.6",
|
|
32
|
-
"ssh2": "^1.16.0",
|
|
33
|
-
"treeify": "^1.1.0",
|
|
34
|
-
"unzipper": "^0.12.3",
|
|
35
|
-
"xml2js": "^0.6.0",
|
|
36
|
-
"xmldom": "^0.6.0",
|
|
37
|
-
"xpath": "^0.0.32"
|
|
38
|
-
},
|
|
39
|
-
"devDependencies": {
|
|
40
|
-
"@eslint/compat": "^1",
|
|
41
|
-
"@oclif/prettier-config": "^0.2.1",
|
|
42
|
-
"@oclif/test": "^4",
|
|
43
|
-
"@types/chai": "^4",
|
|
44
|
-
"@types/fs-extra": "^11.0.4",
|
|
45
|
-
"@types/mocha": "^10",
|
|
46
|
-
"@types/node": "^18",
|
|
47
|
-
"@types/rclone.js": "^0.6.3",
|
|
48
|
-
"@types/ssh2": "^1.15.4",
|
|
49
|
-
"@types/treeify": "^1.0.3",
|
|
50
|
-
"@types/unzipper": "^0.10.10",
|
|
51
|
-
"@types/xml2js": "^0.4.14",
|
|
52
|
-
"@types/xmldom": "^0.1.34",
|
|
53
|
-
"chai": "^4",
|
|
54
|
-
"eslint": "^9",
|
|
55
|
-
"eslint-config-oclif": "^6",
|
|
56
|
-
"eslint-config-prettier": "^10",
|
|
57
|
-
"mocha": "^10",
|
|
58
|
-
"oclif": "^4",
|
|
59
|
-
"rimraf": "^6.0.1",
|
|
60
|
-
"shx": "^0.3.3",
|
|
61
|
-
"ts-node": "^10",
|
|
62
|
-
"typescript": "^5"
|
|
63
|
-
},
|
|
64
|
-
"oclif": {
|
|
65
|
-
"bin": "lp",
|
|
66
|
-
"dirname": "legispro-cli",
|
|
67
|
-
"commands": "./dist/commands",
|
|
68
|
-
"plugins": [
|
|
69
|
-
"@oclif/plugin-help",
|
|
70
|
-
"@oclif/plugin-not-found"
|
|
71
|
-
],
|
|
72
|
-
"topicSeparator": " ",
|
|
73
|
-
"topics": {
|
|
74
|
-
"hello": {
|
|
75
|
-
"description": "Say hello to the world and others"
|
|
76
|
-
}
|
|
77
|
-
},
|
|
78
|
-
"macos": {
|
|
79
|
-
"identifier": "com.legispro.cli"
|
|
80
|
-
}
|
|
81
|
-
},
|
|
82
|
-
"scripts": {
|
|
83
|
-
"build": "shx rm -rf dist && tsc -b",
|
|
84
|
-
"build-win": "rimraf tmp && oclif pack win",
|
|
85
|
-
"build-mac": "rimraf tmp && oclif pack macos",
|
|
86
|
-
"build-deb": "rimraf tmp && oclif pack deb",
|
|
87
|
-
"lint": "eslint",
|
|
88
|
-
"postpack": "shx rm -f oclif.manifest.json",
|
|
89
|
-
"posttest": "npm run lint",
|
|
90
|
-
"prepack": "oclif manifest && oclif readme",
|
|
91
|
-
"test": "mocha --forbid-only \"test/**/*.test.ts\"",
|
|
92
|
-
"version": "oclif readme && git add README.md"
|
|
93
|
-
},
|
|
94
|
-
"engines": {
|
|
95
|
-
"node": ">=18.0.0"
|
|
96
|
-
},
|
|
97
|
-
"bugs": "https://github.com/Xcential-Corporation/legispro-cli/issues",
|
|
98
|
-
"keywords": [
|
|
99
|
-
"oclif"
|
|
100
|
-
],
|
|
101
|
-
"types": "dist/index.d.ts"
|
|
102
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "legispro-cli",
|
|
3
|
+
"version": "1.0.9",
|
|
4
|
+
"description": "LegisPro CLI",
|
|
5
|
+
"author": "bmckinney",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"bin": {
|
|
8
|
+
"legispro": "./bin/run.js"
|
|
9
|
+
},
|
|
10
|
+
"homepage": "https://github.com/Xcential-Corporation/legispro-cli",
|
|
11
|
+
"license": "MIT",
|
|
12
|
+
"main": "dist/index.js",
|
|
13
|
+
"files": [
|
|
14
|
+
"./bin",
|
|
15
|
+
"./dist",
|
|
16
|
+
"./oclif.manifest.json"
|
|
17
|
+
],
|
|
18
|
+
"dependencies": {
|
|
19
|
+
"@oclif/core": "^4",
|
|
20
|
+
"@oclif/plugin-help": "^6",
|
|
21
|
+
"@oclif/plugin-plugins": "^5",
|
|
22
|
+
"@octokit/core": "^6.1.4",
|
|
23
|
+
"@octokit/plugin-rest-endpoint-methods": "^13.3.1",
|
|
24
|
+
"ascii-table": "^0.0.9",
|
|
25
|
+
"axios": "^1.8.1",
|
|
26
|
+
"chalk": "^5.4.1",
|
|
27
|
+
"enquirer": "^2.4.1",
|
|
28
|
+
"fs-extra": "^11.3.0",
|
|
29
|
+
"node-ssh": "^13.2.0",
|
|
30
|
+
"ora": "^3.4.0",
|
|
31
|
+
"rclone.js": "^0.6.6",
|
|
32
|
+
"ssh2": "^1.16.0",
|
|
33
|
+
"treeify": "^1.1.0",
|
|
34
|
+
"unzipper": "^0.12.3",
|
|
35
|
+
"xml2js": "^0.6.0",
|
|
36
|
+
"xmldom": "^0.6.0",
|
|
37
|
+
"xpath": "^0.0.32"
|
|
38
|
+
},
|
|
39
|
+
"devDependencies": {
|
|
40
|
+
"@eslint/compat": "^1",
|
|
41
|
+
"@oclif/prettier-config": "^0.2.1",
|
|
42
|
+
"@oclif/test": "^4",
|
|
43
|
+
"@types/chai": "^4",
|
|
44
|
+
"@types/fs-extra": "^11.0.4",
|
|
45
|
+
"@types/mocha": "^10",
|
|
46
|
+
"@types/node": "^18",
|
|
47
|
+
"@types/rclone.js": "^0.6.3",
|
|
48
|
+
"@types/ssh2": "^1.15.4",
|
|
49
|
+
"@types/treeify": "^1.0.3",
|
|
50
|
+
"@types/unzipper": "^0.10.10",
|
|
51
|
+
"@types/xml2js": "^0.4.14",
|
|
52
|
+
"@types/xmldom": "^0.1.34",
|
|
53
|
+
"chai": "^4",
|
|
54
|
+
"eslint": "^9",
|
|
55
|
+
"eslint-config-oclif": "^6",
|
|
56
|
+
"eslint-config-prettier": "^10",
|
|
57
|
+
"mocha": "^10",
|
|
58
|
+
"oclif": "^4",
|
|
59
|
+
"rimraf": "^6.0.1",
|
|
60
|
+
"shx": "^0.3.3",
|
|
61
|
+
"ts-node": "^10",
|
|
62
|
+
"typescript": "^5"
|
|
63
|
+
},
|
|
64
|
+
"oclif": {
|
|
65
|
+
"bin": "lp",
|
|
66
|
+
"dirname": "legispro-cli",
|
|
67
|
+
"commands": "./dist/commands",
|
|
68
|
+
"plugins": [
|
|
69
|
+
"@oclif/plugin-help",
|
|
70
|
+
"@oclif/plugin-not-found"
|
|
71
|
+
],
|
|
72
|
+
"topicSeparator": " ",
|
|
73
|
+
"topics": {
|
|
74
|
+
"hello": {
|
|
75
|
+
"description": "Say hello to the world and others"
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
"macos": {
|
|
79
|
+
"identifier": "com.legispro.cli"
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
"scripts": {
|
|
83
|
+
"build": "shx rm -rf dist && tsc -b",
|
|
84
|
+
"build-win": "rimraf tmp && oclif pack win",
|
|
85
|
+
"build-mac": "rimraf tmp && oclif pack macos",
|
|
86
|
+
"build-deb": "rimraf tmp && oclif pack deb",
|
|
87
|
+
"lint": "eslint",
|
|
88
|
+
"postpack": "shx rm -f oclif.manifest.json",
|
|
89
|
+
"posttest": "npm run lint",
|
|
90
|
+
"prepack": "oclif manifest && oclif readme",
|
|
91
|
+
"test": "mocha --forbid-only \"test/**/*.test.ts\"",
|
|
92
|
+
"version": "oclif readme && git add README.md"
|
|
93
|
+
},
|
|
94
|
+
"engines": {
|
|
95
|
+
"node": ">=18.0.0"
|
|
96
|
+
},
|
|
97
|
+
"bugs": "https://github.com/Xcential-Corporation/legispro-cli/issues",
|
|
98
|
+
"keywords": [
|
|
99
|
+
"oclif"
|
|
100
|
+
],
|
|
101
|
+
"types": "dist/index.d.ts"
|
|
102
|
+
}
|