mirror of
https://github.com/onyx-and-iris/meld-cli.git
synced 2025-07-12 02:11:46 +00:00
remove flag defaults so that we can process env vars
This commit is contained in:
parent
96b22b30a9
commit
24bcd3f5ef
2
index.js
2
index.js
@ -270,7 +270,7 @@ socket.onopen = function () {
|
|||||||
})
|
})
|
||||||
break
|
break
|
||||||
case 'status':
|
case 'status':
|
||||||
channel = new QWebChannel(socket, function (channel) {
|
channel = new QWebChannel(socket, function (channel) { // eslint-disable-line no-unused-vars
|
||||||
recordStatus(channel)
|
recordStatus(channel)
|
||||||
.then((message) => {
|
.then((message) => {
|
||||||
console.log(message)
|
console.log(message)
|
||||||
|
@ -20,13 +20,11 @@ const flags = {
|
|||||||
host: {
|
host: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
shortFlag: 'H',
|
shortFlag: 'H',
|
||||||
default: 'localhost',
|
|
||||||
desc: 'Host address for the Meld server'
|
desc: 'Host address for the Meld server'
|
||||||
},
|
},
|
||||||
port: {
|
port: {
|
||||||
type: 'number',
|
type: 'number',
|
||||||
shortFlag: 'P',
|
shortFlag: 'P',
|
||||||
default: 13376,
|
|
||||||
desc: 'Port number for the Meld server'
|
desc: 'Port number for the Meld server'
|
||||||
},
|
},
|
||||||
help: {
|
help: {
|
||||||
|
@ -2,13 +2,13 @@ import meowHelp from 'cli-meow-help'
|
|||||||
|
|
||||||
const commands = {
|
const commands = {
|
||||||
start: {
|
start: {
|
||||||
desc: 'Start streaming'
|
desc: 'Start recording'
|
||||||
},
|
},
|
||||||
stop: {
|
stop: {
|
||||||
desc: 'Stop streaming'
|
desc: 'Stop recording'
|
||||||
},
|
},
|
||||||
status: {
|
status: {
|
||||||
desc: 'Show the current streaming status'
|
desc: 'Show the current recording status'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user