mirror of
https://github.com/wavetermdev/inshellisense.git
synced 2026-08-05 13:43:30 -07:00
13 lines
235 B
Go
13 lines
235 B
Go
package autocomplete
|
|
|
|
import "strings"
|
|
|
|
func LoadSuggestions(cmd string) []string {
|
|
params := strings.Split(cmd, " ")
|
|
lastParam := params[len(params)-1]
|
|
if lastParam == "git" {
|
|
return []string{"go", "get"}
|
|
}
|
|
return []string{}
|
|
}
|