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 CHANGED
@@ -4,6 +4,11 @@ This project adheres to [Semantic Versioning](http://semver.org/).
4
4
 
5
5
  ## [Unreleased]
6
6
 
7
+ ## [1.0.3] - 2025-01-12
8
+
9
+ ### Fixes
10
+ - Bump versions
11
+
7
12
  ## [1.0.2] - 2025-30-11
8
13
 
9
14
  ### Fixes
@@ -1,5 +1,3 @@
1
- const Command = require('./command')
2
-
3
1
  class CommandLineDirector {
4
2
  constructor (title, description, commandLines) {
5
3
  this.title = title
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "command-line-director",
3
- "version": "1.0.2",
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": "./node_modules/mocha/bin/mocha"
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": "^7.32.0",
35
- "eslint-config-standard": "^16.0.3",
36
- "eslint-plugin-import": "^2.29.0",
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"
@@ -1,4 +1,4 @@
1
- var assert = require('assert');
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');