diff --git a/cmd/root.go b/cmd/root.go index 2d1ed184..7d2076a3 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -67,17 +67,17 @@ var rootCmd = &cobra.Command{ // Do periodic detection of whether an update is available for lagoon-cli users. timeToCheckForUpdates, err := updatecheck.IsUpdateNeeded(updateFile, updateInterval) if err != nil { - output.RenderInfo(fmt.Sprintf("Could not perform update check %v", err), outputOptions) + output.RenderInfo(fmt.Sprintf("Could not perform update check %v\n", err), outputOptions) } if timeToCheckForUpdates && isInternetActive() { // Recreate the updatefile with current time so we won't do this again soon. err = updatecheck.ResetUpdateTime(updateFile) if err != nil { - output.RenderInfo(fmt.Sprintf("Failed to update updatecheck file %s", updateFile), outputOptions) + output.RenderInfo(fmt.Sprintf("Failed to update updatecheck file %s\n", updateFile), outputOptions) } updateNeeded, updateURL, err := updatecheck.AvailableUpdates("uselagoon", "lagoon-cli", lagoonCLIVersion) if err != nil { - output.RenderInfo("Could not check for updates. This is most often caused by a networking issue.", outputOptions) + output.RenderInfo("Could not check for updates. This is most often caused by a networking issue.\n", outputOptions) output.RenderError(err.Error(), outputOptions) return } diff --git a/cmd/users.go b/cmd/users.go index c1797507..4c690311 100644 --- a/cmd/users.go +++ b/cmd/users.go @@ -49,7 +49,7 @@ func parseSSHKeyFile(sshPubKey string, keyName string, keyValue string, userEmai keyName = stripNewLines(splitKey[2]) } else if keyName == "" && len(splitKey) == 2 { keyName = userEmail - output.RenderInfo("no name provided, using email address as key name", outputOptions) + output.RenderInfo("no name provided, using email address as key name\n", outputOptions) } SSHKeyInput := schema.AddSSHKeyInput{ SSHKey: schema.SSHKey{ @@ -407,7 +407,7 @@ var getUserKeysCmd = &cobra.Command{ return err } if len(userKeys.SSHKeys) == 0 { - output.RenderInfo(fmt.Sprintf("No SSH keys for user '%s'", strings.ToLower(userEmail)), outputOptions) + output.RenderInfo(fmt.Sprintf("There are no SSH keys for user '%s'\n", strings.ToLower(userEmail)), outputOptions) return nil } diff --git a/cmd/variables.go b/cmd/variables.go index c6a210ea..3d7ca46e 100644 --- a/cmd/variables.go +++ b/cmd/variables.go @@ -91,7 +91,7 @@ var addVariableCmd = &cobra.Command{ }, outputOptions) fmt.Fprintf(cmd.OutOrStdout(), "%s", r) } else { - output.RenderInfo(fmt.Sprintf("variable %s remained unchanged", varName), outputOptions) + output.RenderInfo(fmt.Sprintf("variable %s remained unchanged\n", varName), outputOptions) } return nil },