Adding context option to command line - #172
Open
russellseymour wants to merge 3 commits into
Open
russellseymour wants to merge 3 commits into
russellseymour wants to merge 3 commits into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📲 What
This change adds support for two command-line overrides that make task testing safer and more flexible when working with temporary or uncommitted config:
eirctl run --importcan load additional config files at runtime and merge them into the active configuration, with imported entries taking precedence on name clashes.eirctl run ... --contextoverrides the context assigned to a task for a single invocation, without requiring the tracked config file to be edited.This is intended to support testing tasks in alternate contexts or with local config overlays while keeping the checked-in configuration unchanged.
🤔 Why
When a task needs to be validated in another execution context, or when a developer wants to try a local override without committing it to the repo, the command-line interface previously offered no clean way to do so.
The result was friction in local development and a higher risk of accidentally persisting temporary configuration changes. The update keeps runtime overrides explicit and scoped to a single invocation.
🛠 How
--importsupport to theeirctl runflow, merging imported config files into the current config with override precedence.--contexthandling for task execution so the selected task can run with an alternate context for that invocation only.--contextwhen executing pipelines, returning a clear validation error.👀 Evidence
cmd/eirctl/run_test.gocmd/eirctl/testdata/cli-import-override.yamldocs/import.adoc,docs/tasks.adoc🕵️ How to test
Expected result:
✅ Acceptance criteria checklist
mainand re-tested where needed.