topnic-https 0.1.8 → 0.1.9
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/bin/cli.js +7 -0
- package/package.json +1 -1
- package/src/main/index.js +7 -1
package/bin/cli.js
CHANGED
@@ -4,6 +4,13 @@ const { program } = require('commander');
|
|
4
4
|
const server = require('../src/main/index.js');
|
5
5
|
const shareManager = require('../src/sharing/shareManager');
|
6
6
|
|
7
|
+
program
|
8
|
+
.command('help')
|
9
|
+
.description('Show help for commands')
|
10
|
+
.action(() => {
|
11
|
+
program.help();
|
12
|
+
});
|
13
|
+
|
7
14
|
program
|
8
15
|
.version('1.0.0')
|
9
16
|
.description('Advanced HTTPS development server');
|
package/package.json
CHANGED
package/src/main/index.js
CHANGED
@@ -275,6 +275,13 @@ function changePort(newPort) {
|
|
275
275
|
console.log(`Port changed to ${currentPort}`);
|
276
276
|
}
|
277
277
|
|
278
|
+
function help(){
|
279
|
+
console.log('Usage: topnic-https [command]');
|
280
|
+
console.log('Commands:');
|
281
|
+
console.log(' run Start the HTTPS server');
|
282
|
+
console.log(' stop Stop the HTTPS server');
|
283
|
+
console.log(' restart Restart the HTTPS server');
|
284
|
+
}
|
278
285
|
function registerShortcuts() {
|
279
286
|
globalShortcut.register('CommandOrControl+Shift+H+R', () => {
|
280
287
|
console.log('🚀 Starting server via shortcut...');
|
@@ -301,7 +308,6 @@ module.exports = {
|
|
301
308
|
stop,
|
302
309
|
restart,
|
303
310
|
changePort,
|
304
|
-
configure,
|
305
311
|
registerShortcuts,
|
306
312
|
unregisterShortcuts
|
307
313
|
};
|