What is Chant?
To chant is to speak magical words. This crate lets you speak beautifully to your users through interactive prompts and styled output.
Features
use ;
// Get user input
let name = input
.placeholder
.run;
// Confirm an action
if confirm.default.run
// Choose from options
let choice = choose
.header
.run;
// Show a spinner while working
spin.run;
CLI Usage
# Install
# Use in scripts
NAME=
&&
CHOICE=
Installation
Ecosystem
Part of the Molten Labs open source ecosystem:
| Crate | Description |
|---|---|
| molten_brand | Design tokens & colors |
| glyphs | ANSI escape sequences |
| lacquer | Terminal styling |
| tuyere | TUI framework |
| scoria | TUI components |
| chant | Shell glamour (you are here) |
| aglow | Markdown renderer |
| censer | Pretty logging |
License
MIT OR Apache-2.0