From b0987b89aad1a15f80a0b0bf6e0e4ab559102d9b Mon Sep 17 00:00:00 2001 From: Niko Aarnio Date: Fri, 2 May 2025 09:51:19 +0300 Subject: [PATCH] fix(CLI): make sure all platforms can read the CLI messages --- eis_toolkit/cli.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/eis_toolkit/cli.py b/eis_toolkit/cli.py index 340619a5..3065b896 100644 --- a/eis_toolkit/cli.py +++ b/eis_toolkit/cli.py @@ -15,7 +15,6 @@ import numpy as np import pandas as pd import rasterio -import rasterio.profiles import typer from beartype.typing import List, Optional, Sequence, Tuple, Union from typing_extensions import Annotated @@ -439,14 +438,14 @@ class ProgressLog: # noqa: D101 def reading_input_files(): # noqa: D102 typer.echo("Opening input files....") yield - typer.echo("✅ Input files read\n") + typer.echo("[OK] Input files read\n") @contextmanager @staticmethod def running_algorithm(): # noqa: D102 typer.echo("Running algorithm...") yield - typer.echo("✅ Algorithm run succesfully\n") + typer.echo("[OK] Algorithm run succesfully\n") @contextmanager @staticmethod @@ -455,14 +454,14 @@ def saving_output_files(savepath: Union[str, Sequence[str]]): # noqa: D102 yield if isinstance(savepath, Sequence): for file in savepath: - typer.echo(f"✅ Output file(s) saved to {file}") + typer.echo(f"[OK] Output file(s) saved to {file}") typer.echo(" ") else: - typer.echo(f"✅ Output file(s) saved to {savepath}\n") + typer.echo(f"[OK] Output file(s) saved to {savepath}\n") @staticmethod def finish(): # noqa: D102 - typer.echo("✅ Algorithm execution finished succesfully\n") + typer.echo("[OK] Algorithm execution finished succesfully\n") class ResultSender: # noqa: D101