INNER CODE UNIT · Python

codegate_cli

stacklok/codegate · src/codegate/pipeline/cli/cli.py:30

async def codegate_cli(command):
    """
    Process the 'codegate' command.
    """
    if len(command) == 0:
        return HELP_TEXT

    available_commands = {
        "version": Version().exec,
        "workspace": Workspace().exec,
        "custom-instructions": CustomInstructions().exec,
    }
    out_func = available_commands.get(command[0])
    if out_func is None:
        if command[0] == "-h":
            return HELP_TEXT
        return NOT_FOUND_TEXT

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…