From 460b56124b74f8824ad27516dc5111928e256c50 Mon Sep 17 00:00:00 2001 From: Lukas Pielsticker <50139597+lukaspie@users.noreply.github.com> Date: Fri, 23 Aug 2024 17:07:52 +0200 Subject: [PATCH] add cli sub-command to support installed readers --- src/pynxtools/dataconverter/convert.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/pynxtools/dataconverter/convert.py b/src/pynxtools/dataconverter/convert.py index 4dc40c011..1e3d4be7e 100644 --- a/src/pynxtools/dataconverter/convert.py +++ b/src/pynxtools/dataconverter/convert.py @@ -467,3 +467,10 @@ def write_to_file(text): ensure_ascii=False, ) ) + + +@main_cli.command("get-readers") +def get_reader_cli(): + "Prints a list of all installed readers." + readers = get_names_of_all_readers() + logger.info(f"The following readers are currently installed: {readers}.")