<#9450 feat: Add `--clear` option to select comman...
# meltano-repo-activity
g
#9450 feat: Add
--clear
option to select command
Pull request opened by tayloramurphy ## Summary Implements a new
--clear
option for the
meltano select
command that removes all custom select patterns for an extractor, reverting it to the default behavior set by the tap. ## Features • New
--clear
flag
: Provides users with a simple way to reset extractor selection patterns • Complete pattern removal: Removes the
select
extra entirely from plugin configuration • Environment support: Works consistently for both regular plugins and environment-specific configurations ## Implementation ### Core Changes • CLI Interface: Added
--clear
option to the select command with proper help text • SelectService: Implemented
clear()
method that removes the
select
extra from plugin configuration • Environment Handling: Supports clearing patterns in both regular and environment-specific contexts ## Testing • Comprehensive test coverage: Tests for both CLI and service layer functionality • Environment testing: Validates behavior across different environment configurations • Integration testing: Ensures proper interaction between CLI and underlying services ## Documentation Updated the command-line interface documentation ## Usage # Reset tap-gitlab to select all entities and attributes meltano select tap-gitlab --clear # Works with environments too meltano select --environment dev tap-gitlab --clear ## Summary by Sourcery Add a --clear option to the meltano select command that deletes all custom select patterns for an extractor (in both regular and environment contexts), reverting it to default behavior, with supporting tests and documentation updates. New Features: • Add --clear flag to the select command to remove all custom selection patterns for an extractor Enhancements: • Support clearing select patterns in both project-wide and environment-specific plugin configurations Documentation: • Update CLI reference documentation to include the --clear option Tests: • Add CLI and service tests to verify clearing select patterns reverts to default behavior meltano/meltano