Skip to content

Commit

Permalink
Add TLS key and certificate to CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
druzsan committed Feb 26, 2024
1 parent b7f2a5f commit abaaf04
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions renumics/spotlight/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,21 @@ def cli_dtype_callback(
multiple=True,
help="Columns to embed (if no --embed-all).",
)
@click.option(
"--ssl-keyfile",
type=click.Path(exists=True, dir_okay=False),
default=None,
help="SSL key file",
)
@click.option(
"--ssl-certfile",
type=click.Path(exists=True, dir_okay=False),
default=None,
help="SSL certificate file",
)
@click.option(
"--ssl-keyfile-password", type=str, default=None, help="SSL keyfile password"
)
@click.option("-v", "--verbose", is_flag=True)
@click.version_option(spotlight.__version__)
def main(
Expand All @@ -124,6 +139,9 @@ def main(
analyze_all: bool,
embed: Tuple[str],
embed_all: bool,
ssl_keyfile: Optional[str],
ssl_certfile: Optional[str],
ssl_keyfile_password: Optional[str],
verbose: bool,
) -> None:
"""
Expand All @@ -150,4 +168,7 @@ def main(
wait="forever",
analyze=True if analyze_all else list(analyze),
embed=True if embed_all else list(embed),
ssl_keyfile=ssl_keyfile,
ssl_certfile=ssl_certfile,
ssl_keyfile_password=ssl_keyfile_password,
)

0 comments on commit abaaf04

Please sign in to comment.