Beautiful, minimal, opinionated CLI prompts inspired by the
@clack/prompts npm package.
💎 Fancy minimal UI ✅ Simple API 🎨 Theme support
Setup
The intro and outro/outro_cancel functions will
print a message to begin and end a prompt session respectively.
use ;
intro?;
// Do stuff
outro?;
Input
The input prompt accepts a single line of text trying to parse it into a target type.
use input;
let path: String = input
.placeholder
.validate
.interact?;
🎨 Theme
A custom theme can be applied for UI rendering. An example of theme customization:
🚥 Progress Bar
Starting from cliclack = "0.1.14", progress bars and multi-progress bars are supported.