From abaaf044534b095443591ca07a48926cce461fff Mon Sep 17 00:00:00 2001 From: Alexander Druz Date: Mon, 26 Feb 2024 16:03:24 +0100 Subject: [PATCH] Add TLS key and certificate to CLI --- renumics/spotlight/cli.py | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/renumics/spotlight/cli.py b/renumics/spotlight/cli.py index 340ba4be..ec117e9f 100644 --- a/renumics/spotlight/cli.py +++ b/renumics/spotlight/cli.py @@ -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( @@ -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: """ @@ -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, )