cli
callback
callback(version: Annotated[bool | None, typer.Option(--version, callback=version_callback, is_eager=True)] = None)
TODO: add description
Source code in src/torah_dl/cli.py
66 67 68 69 70 71 72 73 74 75 76 |
|
download_url
download_url(url: Annotated[str, typer.Argument(help='URL to download')], output_path: Annotated[Path, typer.Argument(help='Path to save the downloaded file')] = Path('audio'))
Download a file from a URL and show progress.
Source code in src/torah_dl/cli.py
45 46 47 48 49 50 51 52 53 54 |
|
extract_url
extract_url(url: str, url_only: Annotated[bool, typer.Option(--url - only, help='Only output the download URL')] = False)
Extract information from a given URL
Source code in src/torah_dl/cli.py
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
|
version_callback
version_callback(value: bool)
print version information to shell
Source code in src/torah_dl/cli.py
57 58 59 60 61 62 63 |
|