Debian Codegraph @

bazel/exporter/interfaces/exporter.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
6 package interfaces
7
8 import "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.
12 type 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.
19 type Exporter interface {
20 // Export will write the converted Bazel cquery response data to
21 // a new project format.
22 Export(qcmd QueryCommand) error
23 }