INNER CODE UNIT · Python
_get_cmd_name_for_docs_link
iterative/mlem · mlem/cli/main.py:98
def _get_cmd_name_for_docs_link(self):
ctx = click.get_current_context()
return get_cmd_name(ctx, no_aliases=True, sep="/")
@staticmethod
def _add_docs_link(help, cmd_name):
return (
help
if help is None or "Documentation" in help
else f"{help}\n\nDocumentation: <https://mlem.ai/doc/command-reference/{cmd_name}>"
)
class MlemCommand(
MlemMixin,
TyperCommand,
):
def __init__(