▲ | Show HN: Tap – Interactive CLI Prompts for Go (Clack Port)(github.com) | |
4 points by yar-kravtsov 3 days ago | ||
I’ve been working on a new Go library called Tap: https://github.com/yarlson/tap. It’s a Go port of the TypeScript library Clack https://clack.cc/, bringing its simple, interactive command-line prompts to Go. Why: I often found myself rewriting input handling, spinners, and progress bars when building CLI tools. Existing options in Go felt either too barebones or too heavyweight. Tap aims to provide a middle ground: ergonomic, event-driven prompts with minimal dependencies. What works today: - Text and password input - Confirm and single-select menus (generic, type-safe) - Spinners and progress bars - Styled intro/outro/cancel messages - Built-in testing utilities What’s coming next: - Multi-select - Autocomplete - Grouped prompts and themes Status: Early stage. APIs may change. Core features are tested but it’s not production-ready yet. Repo: https://github.com/yarlson/tap I’d love feedback on API design, missing features, and cross-platform quirks. |