From daf733af33827124608ce319a930db1b757132de Mon Sep 17 00:00:00 2001 From: Martin Atkins Date: Wed, 21 Aug 2019 15:37:36 -0700 Subject: [PATCH] command/login: UI cleanup --- command/login.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/command/login.go b/command/login.go index 9b5f91eaa..3bac99d1c 100644 --- a/command/login.go +++ b/command/login.go @@ -204,8 +204,9 @@ func (c *LoginCommand) Run(args []string) int { return 1 } + c.Ui.Output("\n---------------------------------------------------------------------------------\n") c.Ui.Output( - "\n" + fmt.Sprintf( + fmt.Sprintf( c.Colorize().Color(strings.TrimSpace(` [green][bold]Success![reset] [bold]Terraform has obtained and saved an API token.[reset] @@ -426,7 +427,8 @@ func (c *LoginCommand) interactiveGetTokenByPassword(hostname svchost.Hostname, return nil, diags } - c.Ui.Output(fmt.Sprintf("Terraform will use your %s login temporarily to request an API token.\n", hostname.ForDisplay())) + c.Ui.Output("\n---------------------------------------------------------------------------------\n") + c.Ui.Output("Terraform must temporarily use your password to request an API token.\nThis password will NOT be saved locally.\n") username, err := c.Ui.Ask(fmt.Sprintf("Username for %s:", hostname.ForDisplay())) if err != nil {