bazel/exporter/interfaces/query_command.go
raw| 1 | // Copyright 2022 Google LLC |
| 2 | // |
| 3 | // Use of this source code is governed by a BSD-style license that can be |
| 4 | // found in the LICENSE file. |
| 5 | package interfaces |
| 6 | |
| 7 | // QueryCommand defines an interface for returning the response of a |
| 8 | // Bazel query or cquery call. |
| 9 | type QueryCommand interface { |
| 10 | // Read will return the response data for a `bazel [cquery|query] ...` |
| 11 | // invocation. |
| 12 | Read() ([]byte, error) |
| 13 | } |