Skip to content

Commit d959663

Browse files
committed
fixup! cli: Add initial command views abstraction
1 parent 949addd commit d959663

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

command/command_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1031,7 +1031,7 @@ func fakeRegistryHandler(resp http.ResponseWriter, req *http.Request) {
10311031
}
10321032
}
10331033

1034-
func testView(t *testing.T) (view *views.View, done func(*testing.T) *terminal.TestOutput) {
1034+
func testView(t *testing.T) (*views.View, func(*testing.T) *terminal.TestOutput) {
10351035
streams, done := terminal.StreamsForTesting(t)
10361036
return views.NewView(streams), done
10371037
}

command/meta.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,7 @@ func (m *Meta) parseTargetFlags() tfdiags.Diagnostics {
587587

588588
// process will process any -no-color entries out of the arguments. This
589589
// will potentially modify the args in-place. It will return the resulting
590-
// slice, and update the Ui and View as needed.
590+
// slice, and update the Meta and Ui.
591591
func (m *Meta) process(args []string) []string {
592592
// We do this so that we retain the ability to technically call
593593
// process multiple times, even if we have no plans to do so

0 commit comments

Comments
 (0)