Skip to content

Commit

Permalink
fix: patch autocompletion of file args and opts
Browse files Browse the repository at this point in the history
  • Loading branch information
joanise committed Feb 28, 2024
1 parent b871668 commit 4a8e0f1
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions aligner/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,18 @@
)


def complete_path():
return []


@app.command()
def align_single(
text_path: Path = typer.Argument(..., exists=True, file_okay=True, dir_okay=False),
audio_path: Path = typer.Argument(..., exists=True, file_okay=True, dir_okay=False),
text_path: Path = typer.Argument(
..., exists=True, file_okay=True, dir_okay=False, autocompletion=complete_path
),
audio_path: Path = typer.Argument(
..., exists=True, file_okay=True, dir_okay=False, autocompletion=complete_path
),
sample_rate: int = typer.Option(
16000, help="The target sample rate for the model."
),
Expand Down

0 comments on commit 4a8e0f1

Please sign in to comment.