With -a, display all

This commit is contained in:
Brian Buller 2021-05-28 14:44:16 -05:00
parent 72af16723b
commit 7bf70a9dc6

View File

@ -21,7 +21,7 @@ func main() {
if v == "-a" { if v == "-a" {
getApprox = true getApprox = true
} else if v == "-completion-list" { } else if v == "-completion-list" {
for k, _ := range allEmoji { for k := range allEmoji {
fmt.Print(strings.Trim(k, ":"), " ") fmt.Print(strings.Trim(k, ":"), " ")
} }
} else { } else {
@ -39,7 +39,6 @@ func main() {
for k, v := range allEmoji { for k, v := range allEmoji {
if strings.Contains(k, which) { if strings.Contains(k, which) {
fmt.Println(v) fmt.Println(v)
os.Exit(0)
} }
} }
} }