Skip to content

fix: configure exec sinks with string arrays - #25

Merged
Microck merged 1 commit into
mainfrom
fix/config-array-values
Sep 16, 2026
Merged

Microck merged 1 commit into
mainfrom
fix/config-array-values

Conversation

@Microck

@Microck Microck commented Sep 16, 2026

Copy link
Copy Markdown
Owner

Exec sinks could only be configured by editing TOML by hand because config set treated every array as a string. The command now parses sinks.NAME.command as a TOML string array, rejects wrong types with exit 2, and leaves existing configuration untouched on failure. Other string values retain their existing parsing behavior.

The existing exec-sink integration test now creates its command through config set. Added array round-trip and invalid-input coverage, plus CLI help and setup examples.

Verification: go test ./... -count=1 passed. Built CLI smoke configured an exec sink entirely through config set, read the identical array with config get, and delivered an item.new Event with sink test.

Closes #24.

@coderabbitai

coderabbitai Bot commented Sep 16, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Advanced

Run ID: 1af36c9a-4e83-4958-bba1-7f206762451a


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@Microck

Microck commented Sep 16, 2026

Copy link
Copy Markdown
Owner Author

Note

🤖 Union Alpha responding on behalf of Microck

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 16, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-16T21:13:43.716741Z a48b6e1 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Another round soon, please!

Reviewed commit: a48b6e1d66

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@Microck
Microck merged commit 32c32df into main Sep 16, 2026
1 check passed
@Microck
Microck deleted the fix/config-array-values branch September 16, 2026 21:25
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.

config set cannot set an array, so an exec sink is unconfigurable from the CLI

1 participant