3737from rich .progress import Progress
3838from rich .table import Table
3939
40- from servicex .app .cli_options import url_cli_option , backend_cli_option
40+ from servicex .app .cli_options import backend_cli_option
4141from servicex .minio_adapter import MinioAdapter
4242from servicex .models import Status , ResultFile
4343from servicex .servicex_client import ServiceXClient
@@ -55,7 +55,6 @@ def transforms():
5555
5656@transforms_app .command (no_args_is_help = True )
5757def list (
58- url : Optional [str ] = url_cli_option ,
5958 backend : Optional [str ] = backend_cli_option ,
6059 complete : Optional [bool ] = typer .Option (
6160 None , "--complete" , help = "Only show successfully completed transforms"
@@ -64,7 +63,7 @@ def list(
6463 """
6564 List the transforms that have been run.
6665 """
67- sx = ServiceXClient (url = url , backend = backend )
66+ sx = ServiceXClient (backend = backend )
6867 table = Table (title = "ServiceX Transforms" )
6968 table .add_column ("Transform ID" )
7069 table .add_column ("Title" )
@@ -82,7 +81,6 @@ def list(
8281
8382@transforms_app .command (no_args_is_help = True )
8483def files (
85- url : Optional [str ] = url_cli_option ,
8684 backend : Optional [str ] = backend_cli_option ,
8785 transform_id : str = typer .Option (None , "-t" , "--transform-id" , help = "Transform ID" ),
8886):
@@ -94,7 +92,7 @@ async def list_files(sx: ServiceXClient, transform_id: str) -> List[ResultFile]:
9492 minio = MinioAdapter .for_transform (transform )
9593 return await minio .list_bucket ()
9694
97- sx = ServiceXClient (url = url , backend = backend )
95+ sx = ServiceXClient (backend = backend )
9896 result_files = asyncio .run (list_files (sx , transform_id ))
9997 table = rich .table .Table (title = f"Files from { transform_id } " )
10098 table .add_column ("filename" )
@@ -107,7 +105,6 @@ async def list_files(sx: ServiceXClient, transform_id: str) -> List[ResultFile]:
107105
108106@transforms_app .command (no_args_is_help = True )
109107def download (
110- url : Optional [str ] = url_cli_option ,
111108 backend : Optional [str ] = backend_cli_option ,
112109 transform_id : str = typer .Option (None , "-t" , "--transform-id" , help = "Transform ID" ),
113110 local_dir : str = typer .Option ("." , "-d" , help = "Local dir to download to" ),
@@ -136,7 +133,7 @@ async def download_with_progress(filename) -> Path:
136133
137134 with Progress () as progress :
138135 download_progress = progress .add_task ("Downloading" , start = False , total = None )
139- sx = ServiceXClient (url = url , backend = backend )
136+ sx = ServiceXClient (backend = backend )
140137 result_files = asyncio .run (download_files (sx , transform_id , local_dir ))
141138
142139 for path in result_files :
@@ -200,7 +197,6 @@ def create_kibana_link_parameters(log_url, transform_id=None, log_level=None, ti
200197
201198@transforms_app .command (no_args_is_help = True )
202199def logs (
203- url : Optional [str ] = url_cli_option ,
204200 backend : Optional [str ] = backend_cli_option ,
205201 transform_id : str = typer .Option (None , "-t" , "--transform-id" , help = "Transform ID" ),
206202 log_level : Optional [LogLevel ] = typer .Option ("ERROR" , "-l" , "--log-level" ,
@@ -213,7 +209,7 @@ def logs(
213209 """
214210 Open the URL to the Kibana dashboard of the logs of a tranformer
215211 """
216- sx = ServiceXClient (backend = backend , url = url )
212+ sx = ServiceXClient (backend = backend )
217213 transforms = sx .get_transform_status (transform_id )
218214 if transforms and transforms .request_id == transform_id :
219215 kibana_link = create_kibana_link_parameters (transforms .log_url ,
0 commit comments