From 24bcd3f5ef5889796fcde3e010240c3a4c1f527c Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Mon, 30 Jun 2025 16:24:00 +0100 Subject: [PATCH] remove flag defaults so that we can process env vars --- index.js | 2 +- utils/cli.js | 2 -- utils/record.js | 6 +++--- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/index.js b/index.js index 8b0e29a..9de618b 100755 --- a/index.js +++ b/index.js @@ -270,7 +270,7 @@ socket.onopen = function () { }) break case 'status': - channel = new QWebChannel(socket, function (channel) { + channel = new QWebChannel(socket, function (channel) { // eslint-disable-line no-unused-vars recordStatus(channel) .then((message) => { console.log(message) diff --git a/utils/cli.js b/utils/cli.js index c4c7ae8..59a958a 100644 --- a/utils/cli.js +++ b/utils/cli.js @@ -20,13 +20,11 @@ const flags = { host: { type: 'string', shortFlag: 'H', - default: 'localhost', desc: 'Host address for the Meld server' }, port: { type: 'number', shortFlag: 'P', - default: 13376, desc: 'Port number for the Meld server' }, help: { diff --git a/utils/record.js b/utils/record.js index bacb311..47cf567 100644 --- a/utils/record.js +++ b/utils/record.js @@ -2,13 +2,13 @@ import meowHelp from 'cli-meow-help' const commands = { start: { - desc: 'Start streaming' + desc: 'Start recording' }, stop: { - desc: 'Stop streaming' + desc: 'Stop recording' }, status: { - desc: 'Show the current streaming status' + desc: 'Show the current recording status' } }