{"id":22286299,"url":"https://github.com/fadeevab/cliclack","last_synced_at":"2025-05-15T03:06:07.967Z","repository":{"id":181630729,"uuid":"666073903","full_name":"fadeevab/cliclack","owner":"fadeevab","description":"Beautiful, minimal, opinionated CLI prompts inspired by the Clack NPM package","archived":false,"fork":false,"pushed_at":"2025-04-05T21:46:46.000Z","size":407,"stargazers_count":248,"open_issues_count":5,"forks_count":19,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-11T14:17:56.464Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fadeevab.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-07-13T16:42:32.000Z","updated_at":"2025-04-05T21:46:49.000Z","dependencies_parsed_at":"2024-01-22T01:37:46.191Z","dependency_job_id":"be305a78-46a7-4f23-b111-bd7d908895f4","html_url":"https://github.com/fadeevab/cliclack","commit_stats":null,"previous_names":["fadeevab/cliclack"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fadeevab%2Fcliclack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fadeevab%2Fcliclack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fadeevab%2Fcliclack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fadeevab%2Fcliclack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fadeevab","download_url":"https://codeload.github.com/fadeevab/cliclack/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254264765,"owners_count":22041793,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-03T16:55:27.129Z","updated_at":"2025-05-15T03:06:07.931Z","avatar_url":"https://github.com/fadeevab.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003cimg alt=\"CliClack Logo\" src=\"https://github.com/fadeevab/cliclack/raw/main/media/cliclack-logo.gif\" width=\"360\" /\u003e\n\u003c/div\u003e\n\n\u003ch2 align=\"center\"\u003eEffortlessly build beautiful command-line apps with Rust 🦀✨\u003c/h2\u003e\n\n[![github.com](https://img.shields.io/badge/cliclack-blue?logo=github\u0026labelColor=black)](https://github.com/fadeevab/cliclack)\n[![crates.io](https://img.shields.io/crates/v/cliclack.svg)](https://crates.io/crates/cliclack)\n[![docs.rs](https://docs.rs/cliclack/badge.svg)](https://docs.rs/cliclack/)\n[![license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/fadeevab/cliclack/blob/main/LICENSE)\n\nBeautiful, minimal, opinionated CLI prompts inspired by the\n[@clack/prompts](https://www.npmjs.com/package/@clack/prompts) `npm` package.\n\n```sh\ncargo add cliclack\n```\n\n\u003ch2 align=\"center\"\u003e\u003ccode\u003ecliclack\u003c/code\u003e in action\u003c/h2\u003e\n\n```sh\ncargo run --example basic\ncargo run --example log\n```\n\n\u003cdiv align=\"center\"\u003e\n  \u003cimg alt=\"CliClack Example\" src=\"https://github.com/fadeevab/cliclack/raw/main/media/cliclack-demo.gif\" width=\"420\" /\u003e\n\u003c/div\u003e\n\n💎 Fancy minimal UI\u003cbr\u003e\n✅ Simple API\u003cbr\u003e\n🎨 Theme support\u003cbr\u003e\n\n### Setup\n\nThe `intro` and `outro`/`outro_cancel` functions will\nprint a message to begin and end a prompt session respectively.\n\n```rust\nuse cliclack::{intro, outro};\n\nintro(\"create-my-app\")?;\n// Do stuff\noutro(\"You're all set!\")?;\n```\n\n### Input\n\nThe input prompt accepts a single line of text trying to parse it into a target type.\nMultiline input can be enabled using the `multiline()` switch.\n\n```rust\nuse cliclack::input;\n\nlet path: String = input(\"Where should we create your project?\")\n    .placeholder(\"./sparkling-solid\")\n    .validate(|input: \u0026String| {\n        if input.is_empty() {\n            Err(\"Please enter a path.\")\n        } else if !input.starts_with(\"./\") {\n            Err(\"Please enter a relative path\")\n        } else {\n            Ok(())\n        }\n    })\n    .interact()?;\n```\n\n### 🎨 Theme\n\nA custom theme can be applied for UI rendering. An example of theme customization:\n\n```sh\ncargo run --example theme\n```\n\n\u003cdiv align=\"center\"\u003e\n  \u003cimg alt=\"CliClack Magenta Theme\" src=\"https://github.com/fadeevab/cliclack/raw/main/media/cliclack-theme.png\" width=\"400\" /\u003e\n\u003c/div\u003e\n\n### 🚥 Progress Bar\n\nStarting from `cliclack = \"0.2.3\"`, progress bars and multi-progress bars are supported.\n\n\u003cdiv align=\"center\"\u003e\n  \u003cimg alt=\"CliClack Multi Progress Bar\" src=\"https://github.com/fadeevab/cliclack/raw/main/media/cliclack-multi-progress-bar.gif\" width=\"600\" /\u003e\n\u003c/div\u003e\n\n### See more\n\n- [Documentation](https://docs.rs/cliclack)\n- [Examples](https://github.com/fadeevab/cliclack/tree/main/examples)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffadeevab%2Fcliclack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffadeevab%2Fcliclack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffadeevab%2Fcliclack/lists"}