Skip to content

Commit

Permalink
Change helper, add support for output config and prevent process exit
Browse files Browse the repository at this point in the history
  • Loading branch information
aedart committed Oct 21, 2024
1 parent d3e0b7a commit f786e78
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions tests/cli/packages/cli/helpers/makeCliApplication.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,19 @@
import { CliApplication } from "@aedart/cli";

// TODO: ...
export default function makeCliApplication()
/**
* TODO:
*
* @param {import('commander').OutputConfiguration} [output]
*
* @return {CliApplication}
*/
export default function makeCliApplication(output)
{
return new CliApplication();
const cli = new CliApplication();

if (output) {
cli.output(output);
}

return cli.preventProcessExit();
}

0 comments on commit f786e78

Please sign in to comment.