Skip to content

Commit

Permalink
Add cli command (#783)
Browse files Browse the repository at this point in the history
  • Loading branch information
bkorycki authored Jan 9, 2025
1 parent f71d698 commit b9aada4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/modelgauge/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,15 @@ def list_suts():
_display_factory_entry(sut_uid, sut, secrets)


@modelgauge_cli.command()
@LOCAL_PLUGIN_DIR_OPTION
def list_annotators():
"""List details about all registered SUTs (System Under Test)."""
secrets = load_secrets_from_config()
for annotator_uid, annotator in ANNOTATORS.items():
_display_factory_entry(annotator_uid, annotator, secrets)


@modelgauge_cli.command()
@LOCAL_PLUGIN_DIR_OPTION
def list_secrets() -> None:
Expand Down

0 comments on commit b9aada4

Please sign in to comment.