remove to find-function

This commit is contained in:
svlandeg 2023-07-26 16:13:30 +02:00
parent 7c3f217a2e
commit f443dd10b8
2 changed files with 5 additions and 5 deletions

View File

@ -14,7 +14,7 @@ from .debug_diff import debug_diff # noqa: F401
from .debug_model import debug_model # noqa: F401
from .download import download # noqa: F401
from .evaluate import evaluate # noqa: F401
from .find_loc import find_loc # noqa: F401
from .find_function import find_function # noqa: F401
from .find_threshold import find_threshold # noqa: F401
from .info import info # noqa: F401
from .init_config import fill_config, init_config # noqa: F401

View File

@ -5,8 +5,8 @@ from ..util import registry
from ._util import Arg, Opt, app
@app.command("find-loc")
def find_loc_cli(
@app.command("find-function")
def find_function_cli(
# fmt: off
func_name: str = Arg(..., help="Name of the registered function."),
registry_name: str = Opt(None, help="Name of the catalogue registry."),
@ -25,10 +25,10 @@ def find_loc_cli(
registry_name = name
break
find_loc(func_name, registry_name)
find_function(func_name, registry_name)
def find_loc(func_name: str, registry_name: str) -> None:
def find_function(func_name: str, registry_name: str) -> None:
try:
registry_desc = registry.find(registry_name, func_name)