eitri-cli 1.16.0-beta.2 → 1.16.0-beta.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.
@@ -20,6 +20,7 @@ export function start(args: StartArguments): Promise<void>
20
20
  export namespace app {
21
21
  export function start(args: StartArguments): Promise<void>
22
22
  export function appLogs(): Promise<void>
23
+ export function clean(): Promise<void>
23
24
  }
24
25
  export namespace workspace {
25
26
  export function clean(): Promise<void>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eitri-cli",
3
- "version": "1.16.0-beta.2",
3
+ "version": "1.16.0-beta.3",
4
4
  "description": "Command Line Interface to make \"Eitri-App\" with code and fire.",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -3,6 +3,8 @@ module.exports = function AppCommand() {
3
3
  const app = commander.command("app")
4
4
  .description("Gerencia a execução de Eitri-Apps do Aplicativo declarado no app-config.yaml 'eitri app --help'")
5
5
 
6
+ const eitriCLIV2 = require("../../../eitri-cli-v2/index.js");
7
+
6
8
  app
7
9
  .command("start")
8
10
  .description("Inicializa todos os Eitri-Apps do arquivo de configuração app-config.yaml")
@@ -12,7 +14,6 @@ module.exports = function AppCommand() {
12
14
  "Gera um QR code com a URL de abertura do Eitri Playground"
13
15
  )
14
16
  .action(async (cmdObj) => {
15
- const eitriCLIV2 = require("../../../eitri-cli-v2/index.js");
16
17
  await eitriCLIV2.app.start(cmdObj)
17
18
  });
18
19
 
@@ -20,9 +21,15 @@ module.exports = function AppCommand() {
20
21
  .command("logs")
21
22
  .description("Exibe os logs dos Eitri-Apps em execução do comando 'eitri app start'")
22
23
  .action(async () => {
23
- const eitriCLIV2 = require("../../../eitri-cli-v2/index.js");
24
24
  await eitriCLIV2.app.appLogs();
25
25
  });
26
26
 
27
+ app
28
+ .command("clean")
29
+ .description("Realiza a limpeza do workspace remoto")
30
+ .action(async () => {
31
+ await eitriCLIV2.app.clean();
32
+ });
33
+
27
34
  return app;
28
35
  };