return command action result
baravak opened this issue · comments
Hasan Salehi commented
I want to use this library in Net Socket connections, and I need to send the output of each action as a socket response. Is there a solution for this?
const serverSignal = createServer((socket) => {
socket.on('data', (data) => {
const result = await Program.parseAsync()
socket.write(result)
socket.end()
})
})
John Gee commented
For capturing the Commander output, have a look at the README section covering .configureOutput()
and .exitOverride()
.
John Gee commented
John Gee commented
An answer was provided, and no further activity in a month. Closing this as resolved.
Feel free to open a new issue if it comes up again, with new information and renewed interest.