xref: /aosp_15_r20/external/skia/bazel/exporter/interfaces/exporter.go (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
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
6package interfaces
7
8import "io"
9
10// Writer is an interface that groups io.StringWriter and io.Writer to
11// enable simpler writing of the exported Bazel output text.
12type Writer interface {
13	io.StringWriter
14	io.Writer
15}
16
17// Exporter defines an interface for exporting the Bazel workspace
18// rules to a different project format.
19type Exporter interface {
20	// Export will write the converted Bazel cquery response data to
21	// a new project format.
22	Export(qcmd QueryCommand) error
23}
24