From fec1ca69ac8f420a918cdf10a4cee2ce69ded9e6 Mon Sep 17 00:00:00 2001 From: Brandon Croft Date: Fri, 30 Jun 2023 14:44:43 -0600 Subject: [PATCH] Fix console godoc --- commands.go | 7 +++---- internal/command/console.go | 4 ++-- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/commands.go b/commands.go index a921b0f84a..14483381ae 100644 --- a/commands.go +++ b/commands.go @@ -423,11 +423,10 @@ func initCommands( } HiddenCommands = map[string]struct{}{ - "env": struct{}{}, - "internal-plugin": struct{}{}, - "push": struct{}{}, + "env": {}, + "internal-plugin": {}, + "push": {}, } - } // makeShutdownCh creates an interrupt listener and returns a channel. diff --git a/internal/command/console.go b/internal/command/console.go index 16c669b498..d7f84f35f6 100644 --- a/internal/command/console.go +++ b/internal/command/console.go @@ -19,8 +19,8 @@ import ( "github.com/mitchellh/cli" ) -// ConsoleCommand is a Command implementation that applies a Terraform -// configuration and actually builds or changes infrastructure. +// ConsoleCommand is a Command implementation that starts an interactive +// console that can be used to try expressions with the current config. type ConsoleCommand struct { Meta }