#!/usr/bin/env python3
# -*- coding: latin-1 -*-
"""
Call Azure DevOps pipeline and optionally search output.

Prerequisites:
    - Azure DevOps Personal Access Token (PAT)

PAT Permissions:
    - Build (read and execute)

Usage:
    azdo_pipeline
        -t <pat>
        -o <org>
        -p <project_id>
        -l <pipeline_id>
        [-d <run_parameters>]
        [-r <run_id>]
        [-g <log_id>]
        [-s <search_pattern>]

Returns:
    Object with run ID, status code, and data.
"""

import azdo_pipeline

if __name__ == "__main__":
    azdo_pipeline.main()
