Composer-installable CLI of TUI primitives
13 subcommands โ choose, confirm, file, filter, format, input, join, log, pager, spin, style, table, write. Drop into a shell script and instantly get a Charm-quality interactive UX.
composer require candycore/candy-shell
# Apply styling.
candyshell style --foreground "#ff5f87" --bold "Hello, candy!"
# Pick one item.
choice=$(candyshell choose Pizza Burger Salad)
# Read a single line.
name=$(candyshell input --placeholder "Your name?")
# Confirm a destructive action.
candyshell confirm "Really delete $file?" && rm "$file"
# Show a spinner while running a command.
candyshell spin --title "Building..." -- make build
# Fuzzy-filter a list.
git branch | candyshell filter
VHS-recorded GIFs of every example shipped with the library. Regenerated automatically on every push that touches the source.