@iobroker/js-controller-cli 4.0.17 → 4.1.0-alpha.10-20220312-cb53b8bb

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.
@@ -161,6 +161,11 @@ module.exports = class CLIStates extends CLICommand {
161
161
  const { callback, dbConnect } = this.options;
162
162
  const id = args[1];
163
163
 
164
+ if (!id) {
165
+ CLI.error.stateNotFound(id);
166
+ return;
167
+ }
168
+
164
169
  dbConnect(async (objects, states) => {
165
170
  if (id.startsWith(ALIAS_STARTS_WITH)) {
166
171
  objects.getObject(id, (err, targetObj) => {
@@ -821,17 +821,6 @@ function List(options) {
821
821
  that.listAdaptersFiles(adapters, names ? names.join('/') : null, () => processExit());
822
822
  });
823
823
  break;
824
-
825
- default:
826
- if (type) {
827
- console.error('Unknown type: ' + type);
828
- return void processExit(EXIT_CODES.INVALID_ARGUMENTS);
829
- } else {
830
- console.log(
831
- 'Please specify type: objects, states, instances, adapters, users, groups, enums, files'
832
- );
833
- return void processExit();
834
- }
835
824
  }
836
825
  });
837
826
  };
package/package.json CHANGED
@@ -1,18 +1,18 @@
1
1
  {
2
2
  "name": "@iobroker/js-controller-cli",
3
- "version": "4.0.17",
3
+ "version": "4.1.0-alpha.10-20220312-cb53b8bb",
4
4
  "engines": {
5
5
  "node": ">=12.0.0"
6
6
  },
7
7
  "dependencies": {
8
- "@iobroker/js-controller-common": "4.0.17",
9
- "@iobroker/js-controller-common-db": "4.0.17",
8
+ "@iobroker/js-controller-common": "4.1.0-alpha.10-20220312-cb53b8bb",
9
+ "@iobroker/js-controller-common-db": "4.1.0-alpha.10-20220312-cb53b8bb",
10
10
  "chokidar": "^3.5.3",
11
11
  "daemonize2": "^0.4.2",
12
12
  "debug": "^4.3.3",
13
13
  "deep-clone": "^3.0.3",
14
14
  "event-stream": "^4.0.1",
15
- "fs-extra": "^10.0.0",
15
+ "fs-extra": "^10.0.1",
16
16
  "readline-sync": "^1.4.10"
17
17
  },
18
18
  "keywords": [
@@ -38,5 +38,5 @@
38
38
  "lib/",
39
39
  "index.js"
40
40
  ],
41
- "gitHead": "9ab0438a9d732f08525f182bec595740050ee03a"
41
+ "gitHead": "c17064149aa818ae28d33f77d14c591174a72287"
42
42
  }