From e7f857cf4f9d76179aec7ba571132ce5ff89399b Mon Sep 17 00:00:00 2001 From: Dan Anglin Date: Thu, 23 May 2024 17:11:51 +0100 Subject: [PATCH] update print message in whoami --- internal/executor/whoami.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/executor/whoami.go b/internal/executor/whoami.go index 995dbf8..0384b06 100644 --- a/internal/executor/whoami.go +++ b/internal/executor/whoami.go @@ -14,14 +14,14 @@ type WhoAmIExecutor struct { } func NewWhoAmIExecutor(tlf TopLevelFlags, name, summary string) *WhoAmIExecutor { - command := WhoAmIExecutor{ + whoExe := WhoAmIExecutor{ FlagSet: flag.NewFlagSet(name, flag.ExitOnError), topLevelFlags: tlf, } - command.Usage = commandUsageFunc(name, summary, command.FlagSet) + whoExe.Usage = commandUsageFunc(name, summary, whoExe.FlagSet) - return &command + return &whoExe } func (c *WhoAmIExecutor) Execute() error { @@ -30,7 +30,7 @@ func (c *WhoAmIExecutor) Execute() error { return fmt.Errorf("unable to load the credential config; %w", err) } - fmt.Printf("You are %s\n", config.CurrentAccount) + fmt.Printf("You are logged in as %q.\n", config.CurrentAccount) return nil }