fleetbo-cockpit-cli 1.0.136 → 1.0.138

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.
Files changed (2) hide show
  1. package/cli.js +6 -5
  2. package/package.json +1 -1
package/cli.js CHANGED
@@ -621,9 +621,9 @@ if (command === 'alex') {
621
621
  console.log('');
622
622
  console.log('\x1b[36mEXAMPLES\x1b[0m');
623
623
  console.log('');
624
- console.log('\x1b[33m›\x1b[0m \x1b[90m"\x1b[33mforge\x1b[90m a camera to scan receipts for my expense tracker"\x1b[0m');
625
- console.log('\x1b[33m›\x1b[0m \x1b[90m"\x1b[33mcreate\x1b[90m a form to add products with photos to my catalog"\x1b[0m');
626
- console.log('\x1b[33m›\x1b[0m \x1b[90m"\x1b[33mupdate\x1b[90m CloudCamera to save in the collection orders"\x1b[0m');
624
+ console.log('\x1b[33m›\x1b[0m \x1b[90m"\x1b[33mforge\x1b[90m a camera module to scan receipts for my expense tracker"\x1b[0m');
625
+ console.log('\x1b[33m›\x1b[0m \x1b[90m"\x1b[33mcreate\x1b[90m a form module to add products with photos to my catalog"\x1b[0m');
626
+ console.log('\x1b[33m›\x1b[0m \x1b[90m"\x1b[33mupdate\x1b[90m the CloudCamera module to save in the collection orders"\x1b[0m');
627
627
 
628
628
  // READY
629
629
  console.log('');
@@ -661,9 +661,10 @@ if (command === 'alex') {
661
661
  else {
662
662
  if (inputBuffer.trim() !== "") {
663
663
  if (!hintShown) {
664
- // 1ère ligne vide → écrit le hint dans le PTY (visible par Xterm)
664
+ // 1ère ligne vide → affiche le hint, attend la 2ème
665
665
  hintShown = true;
666
- process.stdout.write('\x1b[90m ↵ again to send\x1b[0m\n');
666
+ rl.setPrompt("\x1b[90m ↵ again to send\x1b[0m");
667
+ rl.prompt();
667
668
  } else {
668
669
  // 2ème ligne vide → soumet
669
670
  hintShown = false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fleetbo-cockpit-cli",
3
- "version": "1.0.136",
3
+ "version": "1.0.138",
4
4
  "description": "Fleetbo CLI - Build native mobile apps with React",
5
5
  "author": "Fleetbo",
6
6
  "license": "MIT",