Skip to content

Add --dry-run flag to bernstein compose command#274

Merged
chernistry merged 2 commits into
sipyourdrink-ltd:mainfrom
forfreedomforrich-eng:add-dry-run-flag
Apr 6, 2026
Merged

Add --dry-run flag to bernstein compose command#274
chernistry merged 2 commits into
sipyourdrink-ltd:mainfrom
forfreedomforrich-eng:add-dry-run-flag

Conversation

@forfreedomforrich-eng

Copy link
Copy Markdown

This PR adds a --dry-run flag to the bernstein compose command that prints the JSON payload that would be sent to the server without actually making the API call. This allows users to preview and validate task definitions before submitting them.

Implements issue sipyourdrink-ltd#253 by adding a --dry-run flag that prints the JSON payload that would be sent without actually calling the API. This allows users to preview and validate task definitions before submitting them.
@kilo-code-bot

kilo-code-bot Bot commented Apr 6, 2026

Copy link
Copy Markdown

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Files Reviewed (1 files) [Incremental review]
  • src/bernstein/cli/task_cmd.py

Reviewed by grok-code-fast-1 · 137,354 tokens

@kilo-code-bot

kilo-code-bot Bot commented Apr 6, 2026

Copy link
Copy Markdown

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Files Reviewed (1 files)
  • src/bernstein/cli/task_cmd.py

1 similar comment
@kilo-code-bot

kilo-code-bot Bot commented Apr 6, 2026

Copy link
Copy Markdown

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Files Reviewed (1 files)
  • src/bernstein/cli/task_cmd.py

@chernistry chernistry left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Nice implementation, thanks! One small fix needed before merge:

The last line of task_cmd.py lost its trailing newline (see \ No newline at end of file in the diff). Please add it back — most editors do this automatically, just make sure the file ends with a newline character.

Once that's fixed, LGTM 👍

@chernistry chernistry left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Fixed the trailing newline myself — good work, thanks for the contribution! 👍

@chernistry chernistry merged commit c17440b into sipyourdrink-ltd:main Apr 6, 2026
2 checks passed
@sonarqubecloud

sonarqubecloud Bot commented Apr 6, 2026

Copy link
Copy Markdown

chernistry added a commit that referenced this pull request Apr 30, 2026
Add --dry-run flag to bernstein compose command
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants