Skip to content

feat: Improved arg splitting#286

Merged
craciunoiuc merged 4 commits intostagingfrom
jedevc/arg-splitting
Apr 21, 2026
Merged

feat: Improved arg splitting#286
craciunoiuc merged 4 commits intostagingfrom
jedevc/arg-splitting

Conversation

@jedevc
Copy link
Copy Markdown
Member

@jedevc jedevc commented Apr 21, 2026

Fixes https://linear.app/unikraft/issue/TOOL-682/split-instance-args-in-cli.

When specified something like --args "echo foo", this splits it into ["echo", "foo"]. However, I noticed that this rendered weirdly, so updated the array-like rendering to use JSON-like formatting instead of CSV formatting, and updated the parser to support this as well, so we keep some level of consistency.

jedevc added 3 commits April 20, 2026 18:07
Signed-off-by: Justin Chadwell <justin@unikraft.com>
This makes it clearer where args were split, and how they were split.

Signed-off-by: Justin Chadwell <justin@unikraft.com>
Signed-off-by: Justin Chadwell <justin@unikraft.com>
@jedevc jedevc requested a review from craciunoiuc April 21, 2026 08:10
Copy link
Copy Markdown
Member

@craciunoiuc craciunoiuc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one request my side 🥹

Comment thread internal/resource/value/parse_test.go
Signed-off-by: Justin Chadwell <justin@unikraft.com>
@jedevc jedevc force-pushed the jedevc/arg-splitting branch from 56ff5da to 5238225 Compare April 21, 2026 11:24
Copy link
Copy Markdown
Member

@craciunoiuc craciunoiuc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All good here. Thanks!

Reviewed-by: Cezar Craciunoiu cezar.craciunoiu@unikraft.com
Approved-by: Cezar Craciunoiu cezar.craciunoiu@unikraft.com

@craciunoiuc craciunoiuc merged commit 4ad54f7 into staging Apr 21, 2026
9 checks passed
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.

2 participants