def _append_commands(dct, module_name, commands):
    """Append entry point strings representing the given Command objects.

    Args:
        dct: The dictionary to append with entry point strings. Each key will
            be a primary command with a value containing a list of entry point
            strings representing a Command.
        module_name: The name of the module in which the command object
            resides.
        commands: A list of Command objects to convert to entry point strings.
    """
    for command in commands:
        entry_point = '{command}{subcommand} = {module}{callable}'.format(
            command=command.command, subcommand=':{}'.format(command.
            subcommand) if command.subcommand else '', module=module_name,
            callable=':{}'.format(command.callable) if command.callable else ''
            )
        dct.setdefault(command.command, set()).add(entry_point)
