eitri-cli 1.54.0-beta.1 → 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.
- package/eitri-cli-v2/eitri-cli-v2.darwin-arm64.node +0 -0
- package/eitri-cli-v2/eitri-cli-v2.darwin-x64.node +0 -0
- package/eitri-cli-v2/eitri-cli-v2.linux-x64-gnu.node +0 -0
- package/eitri-cli-v2/eitri-cli-v2.win32-x64-msvc.node +0 -0
- package/eitri-cli-v2/index.d.ts +1 -1
- package/index.js +4 -2
- package/package.json +1 -1
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/eitri-cli-v2/index.d.ts
CHANGED
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
|
-
"
|
|
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
|
});
|