From c564ae3e2ffec784103cde577622cf07e4124588 Mon Sep 17 00:00:00 2001 From: cortadocodes Date: Wed, 5 Feb 2025 15:46:34 +0000 Subject: [PATCH] CHO: Deprecate `octue get-diagnostics` CLI command --- octue/cli.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/octue/cli.py b/octue/cli.py index d83312bf0..520adc690 100644 --- a/octue/cli.py +++ b/octue/cli.py @@ -543,6 +543,28 @@ def diagnostics(cloud_path, local_path, download_datasets): logger.info("Downloaded diagnostics from %r to %r.", cloud_path, local_path) +@octue_cli.command(deprecated=True) +@click.argument( + "cloud_path", + type=str, +) +@click.option( + "--local-path", + type=click.Path(file_okay=False), + default=".", + help="The path to a directory to store the directory of diagnostics data in. Defaults to the current working " + "directory.", +) +@click.option( + "--download-datasets", + is_flag=True, + help="If provided, download any datasets from the diagnostics and update their paths in the configuration and " + "input manifests to the new local paths.", +) +def get_diagnostics(cloud_path, local_path, download_datasets): + diagnostics(cloud_path, local_path, download_datasets) + + @octue_cli.command(deprecated=True) @click.option( "-c",