def find_command(command, all_commands):
    """
    Looks up a command in a list of dictioraries, returns a dictionary from a list

    :param command: Command to look up
    :param all_commands: list of all commands
    :return: dictionary
    """
    for item in all_commands:
        if item["command"] == command:
            return item