Skip to content

Commit

Permalink
switch list to use cmd.Println() (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
patricksanders committed Jul 29, 2021
1 parent de3845d commit 8069e54
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cmd/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ func roleList(all bool) (string, error) {
sb.WriteString("Available Console Roles\n")
}
for i := range roles {
sb.WriteString("\t")
sb.WriteString(roles[i])
sb.WriteString("\n")
}
Expand All @@ -64,6 +63,6 @@ func runList(cmd *cobra.Command, args []string) error {
return err
}
cmd.SetOut(os.Stdout)
cmd.Print(roles)
cmd.Println(roles)
return nil
}

0 comments on commit 8069e54

Please sign in to comment.