@wocker/core 1.0.22 → 1.0.23-beta.0

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.
@@ -31,27 +31,28 @@ class ApplicationContext {
31
31
  return __awaiter(this, void 0, void 0, function* () {
32
32
  const cli = this.get(cli_1.Cli);
33
33
  cli.command("").action(() => {
34
- const module = this.container.getModule(this.module);
35
- for (const [, container] of module.controllers) {
36
- if (!container.description) {
37
- continue;
38
- }
39
- console.info(`${container.description}:`);
40
- const spaceLength = container.commands.reduce((space, route) => {
41
- return route.commandNames.reduce((space, command) => {
42
- return Math.max(space, command.length + 2);
43
- }, space);
44
- }, 0);
45
- for (const route of container.commands) {
46
- if (!route.description) {
34
+ for (const [, module] of this.container.modules) {
35
+ for (const [, container] of module.controllers) {
36
+ if (!container.description) {
47
37
  continue;
48
38
  }
49
- for (const commandName of route.commandNames) {
50
- const space = " ".repeat(Math.max(0, spaceLength - commandName.length));
51
- console.info(` ${commandName} ${space} ${route.description}`);
39
+ console.info(`${container.description}:`);
40
+ const spaceLength = container.commands.reduce((space, route) => {
41
+ return route.commandNames.reduce((space, command) => {
42
+ return Math.max(space, command.length + 2);
43
+ }, space);
44
+ }, 0);
45
+ for (const route of container.commands) {
46
+ if (!route.description) {
47
+ continue;
48
+ }
49
+ for (const commandName of route.commandNames) {
50
+ const space = " ".repeat(Math.max(0, spaceLength - commandName.length));
51
+ console.info(` ${commandName} ${space} ${route.description}`);
52
+ }
52
53
  }
54
+ console.info("");
53
55
  }
54
- console.info("");
55
56
  }
56
57
  });
57
58
  return cli.run(args);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wocker/core",
3
- "version": "1.0.22",
3
+ "version": "1.0.23-beta.0",
4
4
  "author": "Kris Papercut <krispcut@gmail.com>",
5
5
  "description": "Core of the Wocker",
6
6
  "license": "MIT",
@@ -34,7 +34,7 @@
34
34
  "devDependencies": {
35
35
  "@types/dockerode": "^3.3.23",
36
36
  "@types/jest": "^29.5.14",
37
- "@types/node": "^22.15.3",
37
+ "@types/node": "^22.15.17",
38
38
  "jest": "^29.7.0",
39
39
  "make-coverage-badge": "^1.2.0",
40
40
  "memfs": "^4.17.1",