Skip to content

overwrite vars - #10

Merged
hollg merged 1 commit into
mainfrom
feat-overwrite-vars
Jul 14, 2026
Merged

overwrite vars#10
hollg merged 1 commit into
mainfrom
feat-overwrite-vars

Conversation

@hollg

Copy link
Copy Markdown
Contributor

No description provided.

@hollg
hollgforce-pushed the feat-overwrite-vars branch from 83cd392 to f38322dCompareJuly 14, 2026 14:25

CopilotAI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Adds support for overriding YAML collection variables from the CLI via a repeatable --var KEY=VALUE flag, allowing users to override or inject variables when running wave -c ... collection requests.

Changes:

  • Introduced extract_var_overrides to parse and strip --var arguments from trailing params and return a key/value override map.
  • Applied CLI variable overrides on top of collection variables: during handle_collection, and rejected --var on non-collection commands.
  • Extended CLI error types and README documentation to describe the new behavior and usage.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

FileDescription
src/lib.rsImplements parsing of --var overrides, applies overrides to collection vars, rejects --var for non-collection requests, and adds tests.
src/error.rsAdds InvalidVarOverride and corresponding display/suggestion text.
README.mdDocuments --var usage for collection variable overrides/injection.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment threadsrc/lib.rs
Comment on lines +1116 to +1117
let dir = std::env::temp_dir().join(format!("wave_var_test_{}", std::process::id()));
let wave_dir = dir.join(".wave");
@hollg
hollg merged commit c1849e5 into mainJul 14, 2026
4 checks passed
Sign up for freeto 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

@hollg