Skip to content

Commit

Permalink
fix: removing emojis from select
Browse files Browse the repository at this point in the history
  • Loading branch information
Joel Valentine committed Jul 19, 2020
1 parent b58ec3d commit 7fdce9c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion digitalocean/digitalocean.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ var imageFork = []utils.SelectItem{{Name: "Distributions", Value: "D"}, {Name: "
// 3. Asks what Image you would like to use on the droplet (ubuntu, centos...)
// 4. Asks what size you would like the droplet to be (1gb RAM 1 CPU..)
// 5. Asks what region you want the droplet to be hosted in (London, Amsterdam...)
// 6. Asks what SSH Key you wouldl like to use to access the droplet
// 6. Asks what SSH Key you would like to use to access the droplet
// 7. Asks if you are sure with a y/n answer. It will not create a droplet if you chose n
// Finally the droplet is created and returned
func CreateDroplet() (*godo.Droplet, error) {
Expand Down
9 changes: 5 additions & 4 deletions utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ package utils

import (
"errors"
"github.com/digitalocean/godo"
"github.com/manifoldco/promptui"
"strconv"
"strings"

"github.com/digitalocean/godo"
"github.com/manifoldco/promptui"
)

// SelectItem is used for custom selects
Expand All @@ -21,9 +22,9 @@ func CreateCustomSelectPrompt(title string, completeList []SelectItem) promptui.
templates := &promptui.SelectTemplates{
Label: "{{ . }}?",

Active: "\U0001F449{{ .Name | cyan }} ({{ .Value | red }})",
Active: "> {{ .Name | cyan }} ({{ .Value | red }})",
Inactive: " {{ .Name | cyan }} ({{ .Value | red }})",
Selected: "\U0001F449{{ .Name | red | cyan }}",
Selected: "> {{ .Name | red | cyan }}",
}

searcher := func(input string, index int) bool {
Expand Down

0 comments on commit 7fdce9c

Please sign in to comment.