Skip to content

Commit

Permalink
feat!: use new jymfony compiler (written in rust/wasm) for better per…
Browse files Browse the repository at this point in the history
…formance
  • Loading branch information
alekitto committed Nov 5, 2023
1 parent 897f8ef commit 71ce0bd
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 43 deletions.
3 changes: 3 additions & 0 deletions src/Output/Output.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ const OutputInterface = Jymfony.Component.Console.Output.OutputInterface;
* @memberOf Jymfony.Component.Console.Output
*/
export default class Output extends implementationOf(OutputInterface) {
_verbosity = OutputInterface.VERBOSITY_NORMAL;
_formatter;

/**
* Constructor.
*
Expand Down
17 changes: 14 additions & 3 deletions src/Output/StreamOutput.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,20 @@ const Terminal = Jymfony.Component.Console.Terminal;
* @memberOf Jymfony.Component.Console.Output
*/
export default class StreamOutput extends Output {
/**
* @type {NodeJS.WritableStream}
*
* @private
*/
_stream;

/**
* @type {boolean}
*
* @private
*/
_deferUncork = true;

/**
* Constructor.
*
Expand All @@ -25,9 +39,6 @@ export default class StreamOutput extends Output {

super.__construct(verbosity, decorated, formatter);

/**
* @type {NodeJS.WritableStream}
*/
this._stream = stream;
this._deferUncork = true;

Expand Down
82 changes: 42 additions & 40 deletions src/Tester/CommandTester.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,53 +8,55 @@ const StreamOutput = Jymfony.Component.Console.Output.StreamOutput;
* @memberOf Jymfony.Component.Console.Tester
*/
export default class CommandTester {
/**
* @type {Jymfony.Component.Console.Command.Command}
*
* @private
*/
_command;

/**
* @type {string[]}
*
* @private
*/
_inputs = [];

/**
* @type {string}
*
* @private
*/
_readOutput = '';

/**
* @type {Jymfony.Component.Console.Input.ArrayInput}
*
* @private
*/
_input = undefined;

/**
* @type {int}
*
* @private
*/
_statusCode = undefined;

/**
* @type {Jymfony.Component.Console.Output.OutputInterface}
*
* @private
*/
_output = undefined;

/**
* Constructor.
*
* @param {Jymfony.Component.Console.Command.Command} command
*/
__construct(command) {
/**
* @type {Jymfony.Component.Console.Command.Command}
*
* @private
*/
this._command = command;

/**
* @type {string[]}
*
* @private
*/
this._inputs = [];

/**
* @type {string}
*
* @private
*/
this._readOutput = '';

/**
* @type {Jymfony.Component.Console.Input.ArrayInput}
*
* @private
*/
this._input = undefined;

/**
* @type {int}
*
* @private
*/
this._statusCode = undefined;

/**
* @type {Jymfony.Component.Console.Output.OutputInterface}
*
* @private
*/
this._output = undefined;
}

/**
Expand Down

0 comments on commit 71ce0bd

Please sign in to comment.