Registry / cli / cliclack

cliclack

JSON →
library0.5.3rscratesunverified

Beautiful, minimal, opinionated CLI prompts inspired by the Clack NPM package.

# Cargo.toml [dependencies] cliclack = "0.5.3"
INSTALL
IMPORT
SIG · CLICLACK
C
cliclack
clirustv0.5.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Confirm
use cliclack::Confirm;

Prompt user with a yes/no confirmation.

use cliclack::Confirm; fn main() { let answer = Confirm::new("Continue?") .interact() .unwrap(); println!("Answer: {}", answer); }
Debug
Known issues
gotchaRequires a terminal; may panic if stdout is not a TTY.
fix
Check if stdout is a terminal before using, or use the 'non-interactive' feature.
affects: >=0.5.0
Upgrade
Version history
0.5.3latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
28 hits · last 30 days
node
26
OpenAI (training)
1
Resources
cliclack — cargo add cliclack · libregistry