<#9329 feat(cli): New `--state-strategy` CLI optio...
# meltano-repo-activity
g
#9329 feat(cli): New
--state-strategy
CLI option to control the behavior of state updates in
run
and `el`/`elt` commands
Pull request opened by edgarrmondragon ## Description ## Related Issues • Closes #9238 ## Summary by Sourcery Introduce a unified
StateStrategy
enum and new
--state-strategy
option to replace the legacy
--merge-state
flag, refactor contexts and parsing logic to use the new strategy, update documentation and tests accordingly. New Features: • Add
--state-strategy
CLI option (auto|merge|overwrite) for
run
,
el
, and
elt
commands Bug Fixes: • Fix log message formatting in filesystem state store Enhancements: • Deprecate and hide the
--merge-state
flag in favor of
--state-strategy
• Introduce
StateStrategy
enum and
from_cli_args
logic to unify state merging behavior • Refactor EL(B)Context, ELTContext, context builders, and BlockParser to use
state_strategy
instead of
merge_state
Documentation: • Update CLI reference and examples to document
--state-strategy
and deprecate
--merge-state
Tests: • Add tests for
StateStrategy.from_cli_args
and
ELContextProtocol.should_merge_states
• Update existing runner and target tests to use
state_strategy
parameter Chores: • Add
pytest-subtests
to development dependencies meltano/meltano