eitri-cli 1.54.0 → 1.55.0-beta.1

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.
@@ -15,7 +15,7 @@ export interface CreateArguments {
15
15
  projectName: string
16
16
  application?: string
17
17
  yes?: boolean
18
- template?: boolean
18
+ template?: string
19
19
  }
20
20
  export interface EitriLibsArguments {
21
21
  bifrost?: boolean
package/index.js CHANGED
@@ -68,13 +68,15 @@ const run = async () => {
68
68
  "Define o application de execução do Eitri-App",
69
69
  )
70
70
  .option(
71
- "-t, --template",
72
- "Fornece uma variedade de templates para utilizar ao criar o Eitri-App",
71
+ "-t, --template [template]",
72
+ "Seleciona automaticamente o template informado ao criar o Eitri-App. Sem valor, exibe o prompt de seleção",
73
73
  )
74
74
  .option("-v, --verbose", "Exibe mais logs")
75
75
  .action(async (projectName, cmdObj) => {
76
76
  return await globalEitriCLIV2.create({
77
77
  ...cmdObj,
78
+ // --template sem valor vem como `true`; normaliza para undefined para abrir o prompt de seleção
79
+ template: typeof cmdObj.template === "string" ? cmdObj.template : undefined,
78
80
  projectName,
79
81
  });
80
82
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eitri-cli",
3
- "version": "1.54.0",
3
+ "version": "1.55.0-beta.1",
4
4
  "description": "Command Line Interface to make \"Eitri-App\" with code and fire.",
5
5
  "main": "index.js",
6
6
  "bin": {