Skip to content

[Suggestion] Remove promptui and other unused dependenciesΒ #90

@vaska94

Description

@vaska94

Hi, I forked this project and cleaned up the dependency tree. Full disclosure β€” I used Claude Code to implement these changes. If that's a concern, totally understand.

What I changed:

  • Replaced promptui (+ chzyer/readline, chzyer/logex) with a ~185 line custom select widget using golang.org/x/term (was already an indirect dep)
  • Inlined atrox/homedir β€” it's a single function and hasn't been updated in 9 years
  • Replaced deprecated x/crypto/ssh/terminal with x/term
  • Replaced deprecated ioutil.ReadFile with os.ReadFile
  • Fixed goreleaser config for v2 (CI was broken with single-file build path)

Behavior change: Search is now inline β€” just start typing and results filter immediately. No need to press / to toggle search mode. Feels more natural in my experience.

Result: 5 dependencies removed, 0 added. Same look, slightly improved UX.

I understand you might not be interested in these changes, but showing you anyway.

Fork: https://github.com/vaska94/sshw

If you're interested, I can create a PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions