Skip to content

Commit

Permalink
fix built-in list shadowing
Browse files Browse the repository at this point in the history
  • Loading branch information
elephantum committed Aug 11, 2024
1 parent bb3fb25 commit c1c6aff
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions datapipe/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,9 +197,9 @@ def table():
pass


@table.command()
@table.command(name="list")
@click.pass_context
def list(ctx: click.Context) -> None:
def table_list(ctx: click.Context) -> None:
app: DatapipeApp = ctx.obj["pipeline"]

for table in sorted(app.catalog.catalog.keys()):
Expand Down Expand Up @@ -337,10 +337,10 @@ def to_human_repr(step: ComputeStep, extra_args: Optional[Dict] = None) -> str:
return "\n".join(res)


@step.command() # type: ignore
@step.command(name="list") # type: ignore
@click.option("--status", is_flag=True, type=click.BOOL, default=False)
@click.pass_context
def list(ctx: click.Context, status: bool) -> None: # noqa
def step_list(ctx: click.Context, status: bool) -> None: # noqa
app: DatapipeApp = ctx.obj["pipeline"]
steps: List[ComputeStep] = ctx.obj["steps"]

Expand Down

0 comments on commit c1c6aff

Please sign in to comment.