With -a, display all
This commit is contained in:
parent
72af16723b
commit
7bf70a9dc6
3
main.go
3
main.go
@ -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)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user