eitri-cli 1.38.0-beta.4 → 1.38.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.
@@ -22,6 +22,7 @@ export interface CreateArguments {
22
22
  projectName: string
23
23
  application?: string
24
24
  yes?: boolean
25
+ bundle?: boolean
25
26
  }
26
27
  export interface EitriLibsArguments {
27
28
  bifrost?: boolean
package/index.js CHANGED
@@ -90,6 +90,7 @@ const run = async () => {
90
90
  "--application <application>",
91
91
  "Define o application de execução do Eitri-App"
92
92
  )
93
+ .option("-b, --bundle", "Fornece um select de qual bundle deseja utilizar para criar o Eitri-App")
93
94
  .option("-v, --verbose", "Exibe mais logs")
94
95
  .action(async (projectName, cmdObj) => {
95
96
  return await globalEitriCLIV2.create({
@@ -221,19 +222,6 @@ const run = async () => {
221
222
  return await globalEitriCLIV2.gpt();
222
223
  });
223
224
 
224
- program
225
- .command("create-app <application-name>")
226
- .description(
227
- "Cria múltiplos Eitri-Apps para um Aplicativo"
228
- )
229
- .option("-v, --verbose", "Exibe mais logs")
230
- .action(async (applicationName, cmdObj) => {
231
- return await globalEitriCLIV2.app.create({
232
- ...cmdObj,
233
- applicationName
234
- });
235
- });
236
-
237
225
  program.addCommand(VegvisirCommand());
238
226
  program.addCommand(AppCommand());
239
227
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eitri-cli",
3
- "version": "1.38.0-beta.4",
3
+ "version": "1.38.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": {
@@ -1,9 +1,10 @@
1
1
  const commander = require("commander");
2
+ const eitriCLIV2 = require("../../../eitri-cli-v2/index.js");
3
+
2
4
  module.exports = function AppCommand() {
3
5
  const app = commander.command("app")
4
6
  .description("Gerencia a execução de Eitri-Apps do Aplicativo declarado no app-config.yaml 'eitri app --help'")
5
7
 
6
- const eitriCLIV2 = require("../../../eitri-cli-v2/index.js");
7
8
 
8
9
  app
9
10
  .command("start")
@@ -31,5 +32,18 @@ module.exports = function AppCommand() {
31
32
  await eitriCLIV2.app.clean();
32
33
  });
33
34
 
35
+ app
36
+ .command("create <application-name>")
37
+ .description(
38
+ "Cria múltiplos Eitri-Apps para um Aplicativo, baseado em um bundle selecionado."
39
+ )
40
+ .option("-v, --verbose", "Exibe mais logs")
41
+ .action(async (applicationName, cmdObj) => {
42
+ return await eitriCLIV2.app.create({
43
+ ...cmdObj,
44
+ applicationName
45
+ });
46
+ });
47
+
34
48
  return app;
35
49
  };