INNER CODE UNIT · Python

get_cmd_name

iterative/mlem · mlem/cli/main.py:422

def get_cmd_name(
    ctx: Context, no_aliases=False, sep=" ", include_dynamic: bool = True
):
    pieces = []
    while ctx.parent is not None:
        if (
            not include_dynamic
            and isinstance(ctx.command, MlemMixin)
            and ctx.command.is_generated_from_ext
        ):
            ctx = ctx.parent
            continue
        pieces.append(ctx.command.name if no_aliases else ctx.info_name)
        ctx = ctx.parent
    return sep.join(reversed(pieces))


def mlem_command(

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…