Skip to content

Add --dry-run mode to renderflow build#63

Merged
szmyty merged 2 commits intomainfrom
copilot/add-dry-run-mode
Mar 23, 2026
Merged

Add --dry-run mode to renderflow build#63
szmyty merged 2 commits intomainfrom
copilot/add-dry-run-mode

Conversation

Copy link
Contributor

Copilot AI commented Mar 23, 2026

Pipeline execution had no way to preview behavior without side effects — no safe way to validate config or debug output paths before committing a full build.

Changes

  • src/cli.rs — Adds --dry-run flag to the Build subcommand
  • src/main.rs — Threads dry_run into commands::build::run()
  • src/commands/build.rs — Core dry-run logic:
    • Skips ensure_output_dir() — no directories created
    • Runs transforms (pure in-memory, no side effects) for accurate preview
    • Skips select_strategy() / pipeline.run_steps() — pandoc never invoked
    • Logs [dry-run] Would render <format> output to: <path> per format
    • Finishes with ✔ Dry-run complete — no output written
  • renderflow/cli.py — Adds --dry-run Typer option with appropriate output
  • tests/test_cli.py / src/commands/build.rs tests — Coverage for success path, no-file-creation guarantee, and config error propagation in dry-run mode

Usage

renderflow build --dry-run
renderflow build --dry-run --config custom.yaml
Original prompt

This section details on the original issue you should resolve

<issue_title>⚡ Add dry-run mode for pipeline execution</issue_title>
<issue_description>Title: ⚡ Add dry-run mode for pipeline execution


Description

Add a mode that simulates execution without actually running commands.


Goals

  • Allow users to preview pipeline behavior
  • Improve safety and debugging

Requirements

  • Add flag:

renderflow build --dry-run

  • Behavior:
    • log what would happen
    • do NOT execute commands
    • do NOT create files

Acceptance Criteria

  • Dry-run mode logs intended actions
  • No files created
  • No external commands executed</issue_description>

Comments on the Issue (you are @copilot in this section)


📍 Connect Copilot coding agent with Jira, Azure Boards or Linear to delegate work to Copilot in one click without leaving your project management tool.

Copilot AI changed the title [WIP] Add dry-run mode for pipeline execution Add --dry-run mode to renderflow build Mar 23, 2026
Copilot AI requested a review from szmyty March 23, 2026 08:42
@szmyty szmyty marked this pull request as ready for review March 23, 2026 12:32
@szmyty szmyty merged commit f7998b0 into main Mar 23, 2026
@devactivity-app
Copy link

Pull Request Summary by devActivity

Metrics

Cycle Time: 4h 2m Coding Time: < 1 min Pickup Time: 3h 49m Review Time: < 1 min

Achievements

@szmyty szmyty deleted the copilot/add-dry-run-mode branch March 23, 2026 12:32
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.

⚡ Add dry-run mode for pipeline execution

2 participants