marwanhawari / stew

🥘 An independent package manager for compiled binaries.
MIT License
193 stars 14 forks source link

Improving search results (failed) #56

Open slavaGanzin opened 1 month ago

slavaGanzin commented 1 month ago

Hello.

TLDR Stew use GitHub search and it works "suboptimal". Nothing could be done

I found out that for purposes of stew it would be beneficial to use regex and substitute spaces with dots:

"rancher desktop" -> "rancher.desktop"

> stew s rancherdesktop
* Choose a GitHub project:  [Use arrows to move, type to filter]
> rancher-sandbox/docs.rancherdesktop.io [⭐️30] Docs site for Rancher Desktop
  cnrancher/docs-rancher2 [⭐️96] Rancher 中文文档,包括Rancher1.x、Rancher 2.x、RKE、K3s、Octopus、Harvester和 RKE2的中文文档,其中Rancher1.x、Octopus的文档已经不再维护;Rancher 2.x、RKE、K3s、Harvester和 RKE2会定期更新。
  rancher-sandbox/rancherdesktop.io [⭐️4] 
  iamdanielv/RancherDesktopDemo [⭐️10] How to use Rancher Desktop
  rifaterdemsahin/rancherdesktoponwindows [⭐️6] GitHub repository based on the document you uploaded about installing Rancher Desktop and using Kubernetes on Windows 11
  jtravee/docs.rancherdesktop.io [⭐️0] Docs site for Rancher Desktop
  josemarsilva/k8s-docker-iac-labs [⭐️1] kubernetes-docker-rancherdesktop-labs

> stew s rancher desktop
* Choose a GitHub project:  [Use arrows to move, type to filter]
  rancher/go-rancher [⭐️75] Go language bindings for Rancher API
  rancher/hyperkube [⭐️48] Rancher hyperkube images
  jmreicha/awesome-rancher [⭐️282] Curated list of Rancher resources
  rancher/rke [⭐️3213] Rancher Kubernetes Engine (RKE), an extremely simple, lightning fast Kubernetes distribution that runs entirely within containers.
  rancher/storage [⭐️39] Rancher specific storage plugins
  rancher/rancher-cleanup [⭐️167] 
> adi90x/rancher-active-proxy [⭐️156] All in one active reverse proxy for Rancher ! For Kubernetes : https://github.com/adi90x/kube-active-proxy  

> stew s rancher-desktop
* Choose a GitHub project:  [Use arrows to move, type to filter]
> rancher-sandbox/rancher-desktop [⭐️5943] Container Management and Kubernetes on the Desktop
  rancher-sandbox/docs.rancherdesktop.io [⭐️30] Docs site for Rancher Desktop
  erictummers/rancher-desktop-playground [⭐️0] installation and sample use of rancher desktop
  rancher-sandbox/rancher-desktop-wsl-distro [⭐️16] Minimal WSL distro for Rancher Desktop
  rancher-sandbox/rancher-desktop-networking [⭐️4] 
  rancher-sandbox/rancher-desktop-docker-cli [⭐️5] Build docker-cli binaries for Linux, macOS, and Windows for use by Rancher Desktop
  jwsy/simplest-k8s [⭐️15] Simplest k8s deployment

And this works as expected:

> stew s rancher.desktop
* Choose a GitHub project:  [Use arrows to move, type to filter]
> rancher-sandbox/rancher-desktop [⭐️5943] Container Management and Kubernetes on the Desktop
  rancher-sandbox/docs.rancherdesktop.io [⭐️30] Docs site for Rancher Desktop
  erictummers/rancher-desktop-playground [⭐️0] installation and sample use of rancher desktop
  rancher-sandbox/rancher-desktop-wsl-distro [⭐️16] Minimal WSL distro for Rancher Desktop
  rancher-sandbox/rancher-desktop-networking [⭐️4] 
  rancher-sandbox/rancher-desktop-docker-cli [⭐️5] Build docker-cli binaries for Linux, macOS, and Windows for use by Rancher Desktop
  devonfw-forge/rd-installer [⭐️6] Supercharged installer of Rancher Desktop as Docker Desktop alternative

But it's an unstable solution:

stew s colima macos
* Choose a GitHub project:  [Use arrows to move, type to filter]
> abiosoft/colima [⭐️19097] Container runtimes on macOS (and Linux) with minimal setup
  OscarSwanros/colima-dev [⭐️5] La comunidad de desarrolladores de Colima, México.
  orbstack/orbstack [⭐️5351] Fast, light, simple Docker containers & Linux machines
  defract/Colima.bundle [⭐️32] Combined Library Metadata Agent (Colima)
  steveswinsburg/oracle19c-docker [⭐️114] A docker container for running Oracle 19c - now with ARM support
  abiosoft/colima-core [⭐️4] Dependencies for Colima

stew s colima.macos
* Choose a GitHub project:  [Use arrows to move, type to filter]
> kyletaylored/colima-gui [⭐️3] A simple GUI for managing Colima on MacOS.
  mmeyer724/Colima.app [⭐️0] macOS GUI for Colima
  LubikR/colima_menu [⭐️1] MacOS MenuBar app for managing colima
  zicodes/colima-macos-sudoers-fix [⭐️0] Colima sudoers fix (MacOS)
  dee-me-tree-or-love/kalimba [⭐️1] A MacOS menu bar app to control Colima CLI. 🐳
  kelvinmwinuka/colima-gui [⭐️0] A simple GUI for managing Colima on MacOS.
  rgoodfellowe/colima-gui [⭐️0] A simple GUI for managing Colima on MacOS.

That's FYI and for someone who would find the same issue.

p.s. Also it would be nice to allow use extended GitHub syntax like:

stew s user:abiosoft