private-connect 0.3.3 → 0.3.4
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/dist/index.js +4 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -225,7 +225,8 @@ function printHelp() {
|
|
|
225
225
|
${c.bold}Private Connect${c.reset} - Zero-friction connectivity tools
|
|
226
226
|
|
|
227
227
|
${c.bold}Commands:${c.reset}
|
|
228
|
-
|
|
228
|
+
check <target> Test connectivity to any service
|
|
229
|
+
test <target> Alias for check
|
|
229
230
|
tunnel <port> Create a temporary public tunnel
|
|
230
231
|
|
|
231
232
|
${c.bold}Examples:${c.reset}
|
|
@@ -510,10 +511,10 @@ if (args.length === 0 || args[0] === '--help' || args[0] === '-h') {
|
|
|
510
511
|
printHelp();
|
|
511
512
|
process.exit(0);
|
|
512
513
|
}
|
|
513
|
-
if (args[0] === 'test') {
|
|
514
|
+
if (args[0] === 'test' || args[0] === 'check') {
|
|
514
515
|
if (!args[1]) {
|
|
515
516
|
console.error(`${c.red}Error: Target required${c.reset}`);
|
|
516
|
-
console.error(`Usage: npx private-connect
|
|
517
|
+
console.error(`Usage: npx private-connect ${args[0]} <host:port>`);
|
|
517
518
|
process.exit(1);
|
|
518
519
|
}
|
|
519
520
|
runTest(args[1]).catch(console.error);
|