def _to_label(repo, path, name):
    """
    Returns the target string to pass to buck

    Args:
        repo: The name of the cell, or None
        path: The path within the cell
        name: The name of the rule

    Returns:
        A fully qualified target string
    """

    return "{}//{}:{}".format(repo or "", path, name)