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

Commit

Permalink
Fixed prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
StiviiK committed Sep 29, 2022
1 parent 261ff49 commit 0b25492
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prompt/prompt.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func BuildPrompt(subscriptions azurecli.SubscriptionSlice) promptui.Select {

// buildItemTemplate builds the item template
func builItemTemplate(maxSubscriptionsLength, maxTenantsLength int, additionalStyle string) string {
return fmt.Sprintf(" {{ repeat %[1]d \" \" | print .Name | trunc %[1]d | green | %[3]s }} | {{ repeat 36 \" \" | print .ID | trunc 36 | cyan | %[3]s }} | {{ repeat %[2]d \" \" | print .Tenant | trunc %[2]d | faint | %[3]s }} |", maxSubscriptionsLength, maxTenantsLength, additionalStyle)
return fmt.Sprintf(" {{ repeat %[1]d \" \" | print .Name | trunc %[1]d | green | %[3]s }} | {{ repeat 36 \" \" | print .Id | trunc 36 | cyan | %[3]s }} | {{ repeat %[2]d \" \" | print .Tenant | trunc %[2]d | faint | %[3]s }} |", maxSubscriptionsLength, maxTenantsLength, additionalStyle)
}

func newTemplateFuncMap() template.FuncMap {
Expand Down

0 comments on commit 0b25492

Please sign in to comment.