diff --git a/servicex/app/codegen.py b/servicex/app/codegen.py index ee2c4b2b..42ab110a 100644 --- a/servicex/app/codegen.py +++ b/servicex/app/codegen.py @@ -36,6 +36,12 @@ codegen_app = typer.Typer(name="codegen", no_args_is_help=True) +@codegen_app.callback() +def codegen() -> None: + """Sub-commands for interacting with available backend code generators.""" + pass + + @codegen_app.command(no_args_is_help=False) def list( backend: Optional[str] = backend_cli_option, diff --git a/servicex/app/datasets.py b/servicex/app/datasets.py index 226fc008..4e6b2d2e 100644 --- a/servicex/app/datasets.py +++ b/servicex/app/datasets.py @@ -38,6 +38,14 @@ from rich.table import Table datasets_app = typer.Typer(name="datasets", no_args_is_help=True) + + +@datasets_app.callback() +def datasets() -> None: + """Sub-commands for interacting with the list of looked-up datasets on the server.""" + pass + + did_finder_opt = typer.Option( None, help="Filter datasets by DID finder. Some useful values are 'rucio' or 'user'", @@ -60,7 +68,9 @@ def list( show_deleted: Optional[bool] = show_deleted_opt, ): """ - List the datasets. Use fancy formatting if printing to a terminal. + List the datasets on the server. + + Use fancy formatting if printing to a terminal. Output as plain text if redirected. """ sx = ServiceXClient(backend=backend, config_path=config_path) @@ -104,7 +114,11 @@ def get( dataset_id: int = dataset_id_get_arg, ): """ - Get the details of a dataset. Output as a pretty, nested table if printing to a terminal. + List the files in a dataset. + + Known replicas on the GRID are listed. + + Output as a pretty, nested table if printing to a terminal. Output as json if redirected. """ sx = ServiceXClient(backend=backend, config_path=config_path) @@ -147,6 +161,12 @@ def delete( config_path: Optional[str] = config_file_option, dataset_id: int = dataset_id_delete_arg, ): + """ + Remove a dataset from the ServiceX. + + The next time it is queried, it will have to be looked up again. This command should only be + used when debugging. + """ sx = ServiceXClient(backend=backend, config_path=config_path) result = sx.delete_dataset(dataset_id) if result: