Skip to content

Commit

Permalink
Change helper to use core app with Cli configurator
Browse files Browse the repository at this point in the history
  • Loading branch information
aedart committed Nov 10, 2024
1 parent f92cf73 commit 143d360
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/cli/packages/cli/helpers/makeCliApplication.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
import { CliApplication } from "@aedart/cli";
import {
CliApplication,
DefaultCliConfigurator
} from "@aedart/cli";
import { Application } from "@aedart/core";

/**
* Returns a new Cli Application instance
Expand All @@ -10,6 +14,9 @@ import { CliApplication } from "@aedart/cli";
*/
export default function makeCliApplication(output, core)
{
core = core ?? (new Application())
.configure(DefaultCliConfigurator)

const cli = new CliApplication(core);

if (output) {
Expand Down

0 comments on commit 143d360

Please sign in to comment.