Skip to content

fix: ensure woke.customArgs are passed to woke CLI - #24

Open
LarytheLord wants to merge 1 commit into
get-woke:mainfrom
LarytheLord:fix/custom-args-not-applied
Open

fix: ensure woke.customArgs are passed to woke CLI#24
LarytheLord wants to merge 1 commit into
get-woke:mainfrom
LarytheLord:fix/custom-args-not-applied

Conversation

@LarytheLord

Copy link
Copy Markdown

Summary

Fix woke.customArgs not being applied when spawning the woke CLI.

Root cause

In runWoke(), args.concat(this.settings.customArgs) was called without assigning the result, and args was then overwritten by buffer/file args.

Fix

  • Start args from this.settings.customArgs.
  • Append the standard extension args (--stdin -o json or -o json <file>).
  • Keep existing behavior for stdin/file mode unchanged.

Docs

  • Clarify woke.customArgs in README with a concrete CLI-argument example.

Validation

  • npm run lint (warnings only; no errors)
  • NODE_OPTIONS=--openssl-legacy-provider npm run compile

Closes #22.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Custom args are not working.

1 participant