Skip to content

fix(#1583): Support JBang command arguments via system property or envVars#1584

Merged
christophd merged 1 commit into
mainfrom
feature/1583-jbang-command-args
Jul 8, 2026
Merged

fix(#1583): Support JBang command arguments via system property or envVars#1584
christophd merged 1 commit into
mainfrom
feature/1583-jbang-command-args

Conversation

@christophd

Copy link
Copy Markdown
Member

Summary

  • Adds citrus.jbang.args system property / CITRUS_JBANG_ARGS environment variable to JBangSettings for specifying arbitrary JBang CLI arguments (e.g. --deps, --fresh)
  • Arguments are parsed from comma-delimited key=value format with automatic -- prefix and repeated-key merging (e.g. deps=org.foo:bar:1.0,deps=org.baz:qux:2.0--deps=org.foo:bar:1.0,org.baz:qux:2.0)
  • Resolved arguments are prepended to the JBang command invocation in JBangSupport

Fixes #1583

Test plan

  • Unit tests for JBangSettings.parseArgs() covering: null/empty/blank input, single arg, multiple args, repeated arg merging, flag-only args, -- prefix handling, ordering, whitespace trimming

Generated with Claude Code

…vVars

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@christophd christophd merged commit 8c6bf71 into main Jul 8, 2026
1 check passed
@christophd christophd deleted the feature/1583-jbang-command-args branch July 8, 2026 15:33
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.

Support JBang command arguments via system property or envVars

1 participant