Skip to content

feat: wire ee_file_name through CLI so scaffolded EE projects use the custom filename#557

Merged
cidrblock merged 3 commits intomainfrom
feat/add_ee_file_name_arg
Mar 24, 2026
Merged

feat: wire ee_file_name through CLI so scaffolded EE projects use the custom filename#557
cidrblock merged 3 commits intomainfrom
feat/add_ee_file_name_arg

Conversation

@NilashishC
Copy link
Copy Markdown
Collaborator

@NilashishC NilashishC commented Mar 24, 2026

Description

The ee_file_name field was added to EEConfig in #548 but was never exposed as a CLI argument, so users couldn't actually set it. The generated EE definition file was always named execution-environment.yml regardless of configuration.

Add --ee-file-name CLI argument to init execution_env with validation via EEConfig._validate_ee_file_name (rejects paths, requires .yml/.yaml extension) Add ee_file_name field to Config dataclass so the parsed arg flows through to the init subcommand.

Override ee_file_name in _build_ee_config when a non-default value is provided via CLI Register execution-environment.yml in PATH_REPLACERS so the Walker renames the scaffolded file to match ee_file_name.

@NilashishC NilashishC requested a review from a team as a code owner March 24, 2026 06:11
@NilashishC NilashishC requested a review from cidrblock March 24, 2026 06:11
@github-actions github-actions bot added feat and removed feat labels Mar 24, 2026
@NilashishC NilashishC changed the title feat: wire ee_file_name through CLI so scaffolded EE projects use the custom filename feat: wire ee_file_name through CLI so scaffolded EE projects use the custom filename Mar 24, 2026
@github-actions github-actions bot added feat and removed feat labels Mar 24, 2026
@github-actions github-actions bot added feat and removed feat labels Mar 24, 2026
@NilashishC NilashishC force-pushed the feat/add_ee_file_name_arg branch from fa2bed9 to 02862d9 Compare March 24, 2026 08:35
@github-actions github-actions bot added feat and removed feat labels Mar 24, 2026
…custom filename.

The ee_file_name field was added to EEConfig in #548 but was never exposed as a CLI argument,so users couldn't actually set it. The generated EE definition file was always named execution-environment.yml regardless of configuration.

Add --ee-file-name CLI argument to init execution_env with validation via EEConfig._validate_ee_file_name (rejects paths, requires .yml/.yaml extension)
Add ee_file_name field to Config dataclass so the parsed arg flows through to the init subcommand.

Override ee_file_name in _build_ee_config when a non-default value is provided via CLI
Register execution-environment.yml in PATH_REPLACERS so the Walker renames the scaffolded file to match ee_file_name.

Signed-off-by: NilashishC <[email protected]>
Signed-off-by: NilashishC <[email protected]>
Signed-off-by: NilashishC <[email protected]>
Copy link
Copy Markdown
Collaborator

@cidrblock cidrblock left a comment

Choose a reason for hiding this comment

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

LGTM — follows the existing CLI-override pattern used by --ee-name and --ee-base-image. The PATH_REPLACERS integration for file renaming is clean.

@cidrblock cidrblock merged commit 43834e5 into main Mar 24, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants