Skip to content

Commit

Permalink
fix: meltano state list change pattern from argument to option (mel…
Browse files Browse the repository at this point in the history
  • Loading branch information
Ken Payne committed Aug 11, 2022
1 parent e5ee445 commit f0dd8f9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/meltano/cli/state.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def meltano_state(project: Project, ctx: click.Context):


@meltano_state.command(cls=InstrumentedCmd, name="list")
@click.argument("pattern", required=False)
@click.option("--pattern", type=str, help="Filter state IDs by pattern.")
@click.pass_context
@pass_project()
def list_state(
Expand Down
2 changes: 1 addition & 1 deletion tests/meltano/cli/test_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def test_list_pattern(
):
with mock.patch("meltano.cli.state.StateService", return_value=state_service):
for (pattern, expected_result) in patterns_with_expected_results:
result = cli_runner.invoke(cli, ["state", "list", pattern])
result = cli_runner.invoke(cli, ["state", "list", "--pattern", pattern])
assert_cli_runner(result)
assert self.get_result_set(result) == expected_result

Expand Down

0 comments on commit f0dd8f9

Please sign in to comment.