eitri-cli 1.12.0-beta.4 → 1.12.0-beta.6

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.
@@ -29,6 +29,10 @@ url = "2.5.0"
29
29
  urlencoding = "2.1.3"
30
30
  url-parse = "1.0.7"
31
31
  config = "0.14.0"
32
+ futures-util = "0.3.30"
33
+ rust_socketio = { version = "0.4.2", features = ["async"] }
34
+ log = "0.4.21"
35
+ env_logger = "0.11.3"
32
36
  crossterm = "0.27.0"
33
37
  spinners = "4.1.1"
34
38
 
@@ -37,8 +37,9 @@ watch_user_dir = "/server"
37
37
  url = "https://prod.eitri.calindra.com.br/workspace/share"
38
38
 
39
39
  [mini_log]
40
- url = "https://prod.eitri.calindra.com.br/mini-log/rooms"
41
- path = "/mini-log/socket.io"
40
+ url = "https://prod.eitri.calindra.com.br/mini-log"
41
+ path = "/socket.io"
42
+ rooms = "/mini-log/rooms"
42
43
 
43
44
  [manager_api]
44
45
  url = "https://api.eitri.tech/miniapp-manager-api"
@@ -37,8 +37,9 @@ watch_user_dir = "/server"
37
37
  url = "https://prod.eitri.calindra.com.br/workspace/share"
38
38
 
39
39
  [mini_log]
40
- url = "https://prod.eitri.calindra.com.br/mini-log/rooms"
41
- path = "/mini-log/socket.io"
40
+ url = "https://prod.eitri.calindra.com.br/mini-log"
41
+ path = "/socket.io"
42
+ rooms = "/mini-log/rooms"
42
43
 
43
44
  [manager_api]
44
45
  url = "https://api.eitri.tech/miniapp-manager-api"
@@ -34,8 +34,9 @@ upload_file = "/uploadSingle"
34
34
  watch_user_dir = "/server"
35
35
 
36
36
  [mini_log]
37
- url = "https://prod.eitri.calindra.com.br/mini-log/rooms"
38
- path = "/mini-log/socket.io"
37
+ url = "https://prod.eitri.calindra.com.br/mini-log"
38
+ path = "/socket.io"
39
+ rooms = "/mini-log/rooms"
39
40
 
40
41
 
41
42
  [eitri_manager]
@@ -37,8 +37,9 @@ watch_user_dir = "/server"
37
37
  url = "https://prod.eitri.calindra.com.br/workspace/share"
38
38
 
39
39
  [mini_log]
40
- url = "https://prod.eitri.calindra.com.br/mini-log/rooms"
41
- path = "/mini-log/socket.io"
40
+ url = "https://prod.eitri.calindra.com.br/mini-log"
41
+ path = "/socket.io"
42
+ rooms = "/mini-log/rooms"
42
43
 
43
44
  [manager_api]
44
45
  url = "https://api.eitri.tech/miniapp-manager-api"
@@ -13,4 +13,5 @@ export function eitriLibs(eitriLibsArgs: EitriLibsArguments): Promise<void>
13
13
  export function doctor(): Promise<void>
14
14
  export namespace app {
15
15
  export function start(): Promise<void>
16
+ export function appLogs(): Promise<void>
16
17
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eitri-cli",
3
- "version": "1.12.0-beta.4",
3
+ "version": "1.12.0-beta.6",
4
4
  "description": "Command Line Interface to make \"Eitri-App\" with code and fire.",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -47,6 +47,7 @@
47
47
  "folder-hash": "^3.3.0",
48
48
  "form-data": "^4.0.0",
49
49
  "inquirer": "^7.0.0",
50
+ "js-yaml": "^4.1.0",
50
51
  "jsonwebtoken": "^8.5.1",
51
52
  "lz-string": "^1.5.0",
52
53
  "node-watch": "^0.6.3",
@@ -1,15 +1,23 @@
1
1
  const commander = require("commander");
2
2
  module.exports = function AppCommand() {
3
3
  const app = commander.command("app")
4
- .description("Gerencia os workspaces do desenvolvedor, para mais informações execute 'eitri workspace --help'")
4
+ .description("Gerencia a execução de Eitri-Apps do Aplicativo declarado no app-config.yaml 'eitri app --help'")
5
5
 
6
6
  app
7
7
  .command("start")
8
- .description("Lista os workspaces do usuário")
8
+ .description("Inicializa todos os Eitri-Apps do arquivo de configuração app-config.yaml")
9
9
  .action(async (cmdObj) => {
10
10
  const eitriCLIV2 = require("../../../eitri-cli-v2/index.js");
11
11
  await eitriCLIV2.app.start(cmdObj)
12
12
  });
13
13
 
14
+ app
15
+ .command("logs")
16
+ .description("Exibe os logs dos Eitri-Apps em execução do comando 'eitri app start'")
17
+ .action(async () => {
18
+ const eitriCLIV2 = require("../../../eitri-cli-v2/index.js");
19
+ await eitriCLIV2.app.appLogs();
20
+ });
21
+
14
22
  return app;
15
23
  };
@@ -84,7 +84,7 @@ class MiniLog {
84
84
  console.log(`\x1b[34meitri:\x1b[0m\x1b[97m${data.msg}\x1b[0m`);
85
85
  } else {
86
86
  const message = this._colorizeMessage(data.msg, data.method)
87
- console[data.method](`\x1b[34meitri:\x1b[0m${message}`);
87
+ console[data.method](`\x1b[34meitri [${data.slug}]:\x1b[0m${message}`);
88
88
  }
89
89
  }
90
90
  if (data.stopCLI) {