entexto-cli 2.2.1 → 2.2.2

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/bin/entexto.js +11 -0
  2. package/package.json +1 -1
package/bin/entexto.js CHANGED
@@ -131,6 +131,17 @@ program
131
131
  .description('Guía del Live SDK (WebRTC, videollamadas, tiempo real)')
132
132
  .action(require('../lib/commands/live'));
133
133
 
134
+ // ─── Shorthand: entexto t-PORT-l-LINK → tunnel PORT -l LINK ──
135
+ // Allows compact syntax like: entexto t-1200-l-reyjosias
136
+ const args = process.argv.slice(2);
137
+ if (args.length >= 1) {
138
+ const shorthand = args[0];
139
+ const match = shorthand.match(/^t-(\d+)-l-(.+)$/i);
140
+ if (match) {
141
+ process.argv = [process.argv[0], process.argv[1], 'tunnel', match[1], '-l', match[2], ...args.slice(1)];
142
+ }
143
+ }
144
+
134
145
  program.parse(process.argv);
135
146
 
136
147
  if (!process.argv.slice(2).length) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "entexto-cli",
3
- "version": "2.2.1",
3
+ "version": "2.2.2",
4
4
  "description": "CLI oficial de Entexto — Crea, deploya y gestiona proyectos, dominios, APIs y Live SDK desde tu terminal",
5
5
  "main": "lib/index.js",
6
6
  "bin": {