eitri-cli 1.6.0 → 1.6.1-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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eitri-cli",
3
- "version": "1.6.0",
3
+ "version": "1.6.1-beta.1",
4
4
  "description": "Command Line Interface to make \"Eitri-App\" with code and fire.",
5
5
  "main": "index.js",
6
6
  "bin": {
package/src/cmd/create.js CHANGED
@@ -106,8 +106,8 @@ async function askClientApplication(applicationName) {
106
106
  }
107
107
  }
108
108
  const cliOptions = [
109
- ...availableApplications,
110
109
  { name: ITEM_DOUBT, label: "Dúvidas? Veja documentação no browser" },
110
+ ...availableApplications,
111
111
  ];
112
112
  const createLabel = (tgt) => {
113
113
  const orgLabel = tgt.organization?.name ? `(${tgt.organization?.name})`: ''
@@ -121,6 +121,7 @@ async function askClientApplication(applicationName) {
121
121
  message:
122
122
  "Selecione a aplicação para qual destina-se seu Eitri-App:",
123
123
  choices: cliOptions.map(createLabel),
124
+ pageSize: cliOptions.length + 2,
124
125
  },
125
126
  ]);
126
127
  const clientApplication = cliOptions.find(
@@ -25,12 +25,10 @@ class QRCodeFactory {
25
25
  console.log('==================================================')
26
26
 
27
27
  let qrCodeTempPath = `${eitriAppSlug}::${new Date().getTime()}`
28
-
29
28
  if(displayOutsideTerminal){
30
29
  qrCodeTempPath = await this.tempFile(eitriAppSlug)
30
+ await this.createQRCodeImage(qrCodeTempPath, data)
31
31
  }
32
-
33
- await this.createQRCodeImage(qrCodeTempPath, data)
34
32
  return qrCodeTempPath
35
33
  }
36
34