- I wrote a scripts to copy and generate all commands missing in iris from fig repo: https://github.com/withfig/autocomplete - Add a new script to generate commands docs about which commands currently are inside commands folder 377d4aac663590e504fe39a92eb4dac4cbd333b2 - Add more icons e64d4e70a1db61e62053460a882e093bd6373ab1
131 lines
3.2 KiB
Go
131 lines
3.2 KiB
Go
package integration
|
||
|
||
import "strings"
|
||
|
||
var iconMap = map[string]string{
|
||
"git": "",
|
||
"gh": "",
|
||
"docker": "",
|
||
"docker-compose": "",
|
||
"podman": "",
|
||
"go": "",
|
||
"golang": "",
|
||
"python": "",
|
||
"python3": "",
|
||
"pip": "",
|
||
"pip3": "",
|
||
"pipx": "",
|
||
"conda": "",
|
||
"node": "",
|
||
"npm": "",
|
||
"npx": "",
|
||
"pnpm": "",
|
||
"pnpx": "",
|
||
"bun": "",
|
||
"bunx": "",
|
||
"yarn": "",
|
||
"deno": "",
|
||
"rust": "",
|
||
"cargo": "",
|
||
"rustup": "",
|
||
"rustc": "",
|
||
"java": "",
|
||
"javac": "",
|
||
"kotlin": "",
|
||
"mvn": "",
|
||
"gradle": "",
|
||
"ruby": "",
|
||
"gem": "",
|
||
"rails": "",
|
||
"php": "",
|
||
"composer": "",
|
||
"lua": "",
|
||
"nvim": "",
|
||
"vim": "",
|
||
"vi": "",
|
||
"nano": "",
|
||
"emacs": "",
|
||
"code": "",
|
||
"subl": "",
|
||
"cd": "",
|
||
"ls": "",
|
||
"eza": "",
|
||
"exa": "",
|
||
"lsd": "",
|
||
"tree": "",
|
||
"pwd": "",
|
||
"cat": "",
|
||
"bat": "",
|
||
"less": "",
|
||
"more": "",
|
||
"head": "",
|
||
"tail": "",
|
||
"grep": "",
|
||
"rg": "",
|
||
"ripgrep": "",
|
||
"find": "",
|
||
"fd": "",
|
||
"ssh": "",
|
||
"scp": "",
|
||
"sftp": "",
|
||
"rsync": "",
|
||
"kubectl": "",
|
||
"helm": "",
|
||
"k9s": "",
|
||
"minikube": "",
|
||
"terraform": "",
|
||
"ansible": "",
|
||
"aws": "",
|
||
"gcloud": "",
|
||
"tmux": "",
|
||
"screen": "",
|
||
"curl": "",
|
||
"wget": "",
|
||
"nginx": "",
|
||
"mysql": "",
|
||
"psql": "",
|
||
"mongosh": "",
|
||
"redis-cli": "",
|
||
"sqlite3": "",
|
||
"firebase": "",
|
||
"supabase": "",
|
||
"vercel": "▲",
|
||
"netlify": "",
|
||
"hugo": "",
|
||
"next": "▲",
|
||
"vite": "",
|
||
"webpack": "",
|
||
"eslint": "",
|
||
"prettier": "",
|
||
"jest": "",
|
||
"pytest": "",
|
||
"make": "",
|
||
"cmake": "",
|
||
"just": "",
|
||
"nmap": "",
|
||
"ffmpeg": "",
|
||
"ollama": "",
|
||
"systemctl": "",
|
||
"htop": "",
|
||
"btop": "",
|
||
"top": "",
|
||
"tar": "",
|
||
"zip": "",
|
||
"unzip": "",
|
||
"alias": "",
|
||
"history": "",
|
||
"system": "",
|
||
"root": "",
|
||
}
|
||
|
||
func lookupIcon(key string) string {
|
||
key = strings.ToLower(strings.TrimSpace(key))
|
||
if icon, ok := iconMap[key]; ok {
|
||
return icon
|
||
}
|
||
if len(key) > 0 && key[0] >= '0' && key[0] <= '9' {
|
||
return ""
|
||
}
|
||
return "❯"
|
||
}
|