Skip to content

Commit

Permalink
add cli sub-command to support installed readers
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaspie committed Aug 23, 2024
1 parent 43ddb6b commit 460b561
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/pynxtools/dataconverter/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}.")

0 comments on commit 460b561

Please sign in to comment.