Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Change Profile List Format #206

Merged
merged 1 commit into from
Aug 7, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions cli/cmd/profile.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ const (
deleteNewProfileCmdName = "delete"
listProfileCmdName = "list"
esadProfile = "ESAD_PROFILE"
padding = 3
alignLeft = 0
)

//profilesCmd is main command for profile operations like list, create and delete
Expand Down Expand Up @@ -90,8 +92,8 @@ func displayProfiles() {
fmt.Println("failed to load config due to ", err)
return
}
const padding = 3
w := tabwriter.NewWriter(os.Stdout, 0, 0, padding, ' ', tabwriter.AlignRight)

w := tabwriter.NewWriter(os.Stdout, 0, 0, padding, ' ', alignLeft)
fmt.Fprintln(w, "Name\t\tUserName\t\tEndpoint-url\t")
fmt.Fprintf(w, "%s\t\t%s\t\t%s\t\n", "----", "--------", "------------")
for _, profile := range config.Profiles {
Expand Down