A tool for glamorous shell scripts
open sourceMITfree
gum gives shell scripts and dotfile aliases ready-made interactive prompts and styled output without writing any Go: it brings Charm's Bubbles and Lip Gloss libraries to the command line. Its commands ask for input (input, write), pick from lists (choose, filter, file), confirm, show a spinner while a command runs, page through text, render tables, style, join and format text (Markdown, code, templates, emoji), and write structured logs. Each prints its result to stdout for the script to use, and flags or environment variables configure colours, borders and layout. It is made by Charm, the makers of Bubble Tea and Glow.
Ways to install
Package managers
Problems it solves
- add interactive prompts and menus to my bash script
- let a shell script user pick from a list with fuzzy search
- show a spinner in a shell script while a long command runs
- make my shell script output look nicer with colours and borders
Features
- input and multi-line write prompts
- choose and fuzzy filter from lists
- file picker
- confirm prompts
- spinners while a command runs
- pager
- tables
- style, join and format text, Markdown and code
- structured log output
- configure with flags or environment variables
