Use new CLI for the fd binary

This commit is contained in:
Matt McWilliams 2024-09-02 17:54:44 -04:00
parent d1adf98b25
commit 2f48625a58
3 changed files with 17 additions and 4 deletions

10
dist/fd/index.js vendored
View File

@ -37,8 +37,14 @@ class FD {
this.port = port; this.port = port;
this.mock = mock; this.mock = mock;
this.log = (0, log_1.createLog)('fd'); this.log = (0, log_1.createLog)('fd');
if (!this.mock) if (!this.mock) {
this.shell = new shell_1.Shell([this.bin, `${this.width}`, `${this.height}`, `${this.port}`], this.logstd.bind(this), this.logsterr.bind(this), null, true); this.shell = new shell_1.Shell([
this.bin,
'--width', `${this.width}`,
'--height', `${this.height}`,
'--port', `${this.port}`
], this.logstd.bind(this), this.logsterr.bind(this), null, true);
}
this.startDisplay(); this.startDisplay();
this.startClient(); this.startClient();
//this.test(); //this.test();

File diff suppressed because one or more lines are too long

View File

@ -71,7 +71,14 @@ export class FD {
this.port = port; this.port = port;
this.mock = mock; this.mock = mock;
this.log = createLog('fd'); this.log = createLog('fd');
if (!this.mock) this.shell = new Shell([ this.bin, `${this.width}`, `${this.height}`, `${this.port}` ], this.logstd.bind(this), this.logsterr.bind(this), null, true); if (!this.mock) {
this.shell = new Shell([
this.bin,
'--width', `${this.width}`,
'--height', `${this.height}`,
'--port', `${this.port}`
], this.logstd.bind(this), this.logsterr.bind(this), null, true);
}
this.startDisplay(); this.startDisplay();
this.startClient(); this.startClient();
//this.test(); //this.test();