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