Skip to content

Allow to pass a JSON array/object as a target list to CLI - #281

Open
jay7x wants to merge 1 commit into
mainfrom
json_stdin
Open

Allow to pass a JSON array/object as a target list to CLI#281
jay7x wants to merge 1 commit into
mainfrom
json_stdin

Conversation

@jay7x

@jay7x jay7x commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Short description

This PR expands formats, bolt CLI can accept from command line. Now JSON array of target names and JSON object of target items ({"items": [{"target": "target"}, ...]} is supported. This allows to pass a bolt ... run ... --format=json output to another bolt invocation as a target list (bolt ... run -t- ... e.g.)

Checklist

I have:

@jay7x
jay7x force-pushed the json_stdin branch 2 times, most recently from 277eb22 to 9eff086 Compare July 23, 2026 05:06
@bastelfreak bastelfreak added the enhancement New feature or request label Jul 23, 2026
@bastelfreak

Copy link
Copy Markdown
Contributor

Thanks for the PR. I am wondering if we should document this somewhere 🤔

Now it's possible to pass a `bolt plan run ... --format=json` output to
another bolt invocation as target list (`bolt command run -t-` e.g.)

Signed-off-by: Yury Bushmelev <jay4mail@gmail.com>
@jay7x

jay7x commented Jul 23, 2026

Copy link
Copy Markdown
Contributor Author

Thanks for the PR. I am wondering if we should document this somewhere 🤔

I added a line to guides/targets.yaml. Will have a look into openvox-docs also

jay7x pushed a commit to OpenVoxProject/openvox-docs that referenced this pull request Jul 23, 2026
This commit documents the change introduced in
OpenVoxProject/openbolt#281.

Signed-off-by: Yury Bushmelev <yury.bushmelev@fenix-one.com>
@jay7x

jay7x commented Jul 23, 2026

Copy link
Copy Markdown
Contributor Author

Added a PR to the docs repo. But not sure when to merge that, because it should be published after next openbolt release I guess..

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

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants