command-line-director 1.0.2 → 1.0.3
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/CHANGELOG +5 -0
- package/lib/command-line-director.js +0 -2
- package/package.json +6 -8
- package/test/integration-test.js +2 -1
package/CHANGELOG
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "command-line-director",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "Gives direction to you nodejs command line application",
|
|
5
5
|
"main": "./lib/command-line-director.js",
|
|
6
6
|
"keywords": [
|
|
@@ -13,7 +13,8 @@
|
|
|
13
13
|
"bugs": "https://github.com/marcojonker/command-line-director/issues",
|
|
14
14
|
"license": "MIT",
|
|
15
15
|
"scripts": {
|
|
16
|
-
"test": "
|
|
16
|
+
"test": "mocha",
|
|
17
|
+
"lint": "eslint ./lib ./test"
|
|
17
18
|
},
|
|
18
19
|
"author": "Marco Jonker",
|
|
19
20
|
"files": [
|
|
@@ -31,12 +32,9 @@
|
|
|
31
32
|
"homepage": "http://www.cacadu.eu/opensource",
|
|
32
33
|
"dependencies": {},
|
|
33
34
|
"devDependencies": {
|
|
34
|
-
"eslint": "^
|
|
35
|
-
"eslint
|
|
36
|
-
"
|
|
37
|
-
"eslint-plugin-node": "^11.1.0",
|
|
38
|
-
"eslint-plugin-promise": "^5.2.0",
|
|
39
|
-
"mocha": "^9.2.2"
|
|
35
|
+
"@eslint/js": "^9.0.0",
|
|
36
|
+
"eslint": "^9.39.0",
|
|
37
|
+
"mocha": "^11.7.5"
|
|
40
38
|
},
|
|
41
39
|
"engines": {
|
|
42
40
|
"node": ">=18.0.0"
|
package/test/integration-test.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
const assert = require('assert');
|
|
2
2
|
const CommandLineDirector = require('../lib/command-line-director')
|
|
3
3
|
const CommandLine = require('../lib/command-line')
|
|
4
4
|
const CommandLineArgumentFactory = require('../lib/command-line-argument-factory')
|
|
@@ -177,6 +177,7 @@ describe('Integration test', function () {
|
|
|
177
177
|
|
|
178
178
|
const commandLineDirector = new CommandLineDirector('File cli', 'file cli description', commandLines)
|
|
179
179
|
const helpText = commandLineDirector.generateHelp();
|
|
180
|
+
assert.equal(helpText.length > 0, true)
|
|
180
181
|
|
|
181
182
|
let command = commandLineDirector.parseArguments(['list', '-d'], true)
|
|
182
183
|
assert.equal(command.identifier, 'list-identifier');
|