RepositoryKotlin
AJ

ajalt/clikt

Multiplatform command line interface parsing for Kotlin

3.0ksao
136fork
28issue
5lượt xem

Thành tựu nổi bật

Những danh hiệu mới nhất của dự án

1
TINIX TRENDING·Chủ đề: argument-parser

#1 Repository của tuần

1
TINIX TRENDING·Chủ đề: argument-parsing

#1 Repository của tuần

1
TINIX TRENDING·Chủ đề: option-parser

#1 Repository của tuần

🛠️ Clikt – Thư viện CLI Kotlin đa nền tảng mạnh mẽ

Viết command line tool trong Kotlin chưa từng đơn giản đến thế.

Clikt (phát âm "clicked") là một thư viện Kotlin đa nền tảng giúp viết giao diện dòng lệnh (CLI) trở nên đơn giản và trực quan. Dự án của AJ Alt, Clikt hỗ trợ phát triển công cụ dòng lệnh trên nhiều nền tảng khác nhau bao gồm JVM, Node.js, Linux, Windows và macOS.

✨ Điểm nổi bật

  • Lệnh lồng nhau tùy ý: hỗ trợ cấu trúc lệnh con phức tạp.
  • Giá trị tham số an toàn kiểu: kiểu dữ liệu mạnh cho tùy chọn và đối số.
  • Tự động sinh help: tạo trang trợ giúp tự động khi chạy.
  • Tự động sinh autocomplete: hỗ trợ shell autocomplete để cải thiện trải nghiệm người dùng.
  • Hỗ trợ nhiều nền tảng: JVM, Node.js, native Linux, Windows và macOS.
  • Xử lý lỗi thông minh: thông báo lỗi rõ ràng khi người dùng nhập sai.

💡 Vì sao đáng chú ý

Clikt không chỉ là một thư viện parse tham số đơn thuần mà còn cung cấp một khung làm việc hoàn chỉnh để xây dựng CLI với hệ thống lệnh phân cấp, xử lý lỗi tự động và hỗ trợ đa nền tảng. Điều này giúp các nhà phát triển tiết kiệm thời gian và công sức khi phát triển công cụ dòng lệnh phức tạp.


#Kotlin #CLI #Multiplatform #OpenSource #TiniX

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

RepositoryRust
clap-rs/clap

A full featured, fast Command Line Argument Parser for Rust

16.9k
Nov 24, 2026
RepositoryKotlin
xenomachina/kotlin-argparser

Easy to use and concise yet powerful and robust command line argument parsing for Kotlin

497
May 31, 2022
RepositoryC++
Taywee/args

A header-only C++ argument parser library. Supposed to be flexible and powerful, and attempts to be compatible with the functionality of the Python standard argparse library (though not necessarily the API).

1.6k
Oct 23, 2026
RepositoryC++
badaix/popl

Header-only C++ program options parser library

179
Mar 16, 2023
RepositoryC++
Fytch/ProgramOptions.hxx

Single-header program options parsing library for C++11

132
Apr 28, 2022
RepositoryGo
DavidGamba/go-getoptions

Fully featured Go (golang) command line option parser with built-in auto-completion support.

59
Apr 15, 2025
RepositoryC++
hasherezade/paramkit

A small library helping to parse commandline parameters (for C/C++)

59
Apr 7, 2026
RepositoryTypeScript
morluto/rea

Reverse engineer anything with agents, from app behavior down to native binaries.

487.0k
Dec 2, 2026
RepositoryPython
yt-dlp/yt-dlp

A feature-rich command-line audio/video downloader

212.4k
Dec 2, 2026