Skip to content

Commit

Permalink
Update list profiles output
Browse files Browse the repository at this point in the history
  • Loading branch information
janekbaraniewski committed Jul 19, 2023
1 parent ed1da45 commit cd2f87e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/issuectl/profile.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ func initProfileListCommand(rootCmd *cobra.Command) {
config := issuectl.LoadConfig()
profiles := config.GetProfiles()
w := tabwriter.NewWriter(os.Stdout, 1, 1, 1, ' ', 0)
fmt.Fprintln(w, "NAME\tWORK DIR\tBACKEND\tREPOSITORIES\t")
fmt.Fprintln(w, "NAME\tWORK DIR\tGIT USER\tBACKEND\tREPOSITORIES\t")
for _, profile := range profiles {
repos := []string{}
for _, repoName := range profile.Repositories {
repos = append(repos, string(*repoName))
}
fmt.Fprintln(w, fmt.Sprintf("%v\t%v\t%v\t%v\t", profile.Name, profile.WorkDir, profile.Backend, repos))
fmt.Fprintln(w, fmt.Sprintf("%v\t%v\t%v\t%v\t%v\t", profile.Name, profile.WorkDir, profile.GitUserName, profile.Backend, repos))
}
w.Flush()
},
Expand Down

0 comments on commit cd2f87e

Please sign in to comment.