...

Text file src/edge-infra.dev/hack/scripts/ci/ci-query-files.sh

Documentation: edge-infra.dev/hack/scripts/ci

     1#!/usr/bin/env bash
     2set -eu
     3
     4usage() { echo "Usage: $0 [-e exclude manual tags] [-f use file output] [-c <bazelrc config>]" 1>&2; exit 0; }
     5[ $# -eq 0 ] && usage
     6while getopts ":efhc:r:" opt; do
     7    case $opt in 
     8        e) exclude_tag="--exclude-manual-tags" ;;
     9        f) file_output_tag="-f";;
    10        c) config="--config=$OPTARG" ;;
    11        h | *) usage ;;
    12    esac
    13done
    14
    15target_file=$(bazel run "$config" //hack/build/ci/leaf -- "$file_output_tag" "$exclude_tag" --bazel-configs="$config" "$@")
    16
    17echo "$target_file"

View as plain text