Skip to content

Commit bad925c

Browse files
freundTechborchero
andauthored
feat: Add support for passing URLs to the CLI (#65)
Co-authored-by: Oliver Borchert <oliver.borchert@quantco.com>
1 parent ac8cab5 commit bad925c

4 files changed

Lines changed: 4655 additions & 35 deletions

File tree

‎diffly/cli.py‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
import datetime as dt
55
import warnings
6-
from pathlib import Path
76
from typing import Annotated
87

98
import polars as pl
@@ -24,8 +23,10 @@
2423

2524
@app.command()
2625
def main(
27-
left: Annotated[Path, typer.Argument(help="Path to the left parquet file.")],
28-
right: Annotated[Path, typer.Argument(help="Path to the right parquet file.")],
26+
left: Annotated[str, typer.Argument(help="Path or URL to the left parquet file.")],
27+
right: Annotated[
28+
str, typer.Argument(help="Path or URL to the right parquet file.")
29+
],
2930
primary_key: Annotated[
3031
list[str],
3132
typer.Option(

0 commit comments

Comments
 (0)