百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
C

cliclack

> 编程语言
开源

美观、简洁、具有主观性的 CLI 提示,灵感来自 Clack NPM 包

360 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

美观、简洁、具有主观性的 CLI 提示,灵感来自 Clack NPM 包

Effortlessly build beautiful command-line apps with Rust ✨ Beautiful, minimal, opinionated CLI prompts inspired by the @clack/prompts npm package.

bash
cargo add cliclack

cliclack in action

bash
cargo run --example basic
cargo run --example log

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.

rust
use cliclack::{intro, outro};

intro("create-my-app")?;
// Do stuff
outro("You're all set!")?;

Input

The input prompt accepts a single line of text trying to parse it into a target type. Multiline input can be enabled using the multiline() switch, and autocomplete using autocomplete().

rust
use cliclack::input;

let path: String = input("Where should we create your project?")
    .placeholder("./sparkling-solid")
    .validate(|input: &String| {
        if input.is_empty() {
            Err("Please enter a path.")
        } else if !input.starts_with("./") {
            Err("Please enter a relative path")
        } else {
            Ok(())
        }
    })
    .interact()?;

Theme

A custom theme can be applied for UI rendering. An example of theme customization:

bash
cargo run --example theme

Progress Bar

Starting from cliclack = "0.2.3", progress bars and multi-progress bars are supported.

Autocomplete

Starting from cliclack = "0.5.0", the input prompt supports autocompletion.

See more

  • Documentation
  • Examples

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Rust

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言