Optique 0.6.0: Shell completion support for type-safe CLI parsers

洪 民憙 (Hong Minhee) @hongminhee@hackers.pub

Optique 0.6.0 introduces intelligent shell completion to type-safe command-line applications, supporting Bash, zsh, fish, PowerShell, and Nushell. Unlike traditional CLI frameworks, Optique leverages the same parser structure for both argument parsing and completion, eliminating duplicate definitions and ensuring synchronization. Setting up completion is straightforward, with users generating and sourcing a completion script for their shell. The system works automatically with all Optique parser types, offering context-aware suggestions, including file system completion and custom logic for domain-specific value parsers. Additionally, the release enhances command documentation with separate brief, description, and footer texts, and introduces a `commandLine()` message term for clearer command-line examples in help text. Existing Optique users can easily migrate by adding a `completion` option to their `run()` configuration. This release aims to make Optique-based CLIs more user-friendly without sacrificing type safety and composability, providing sophisticated runtime features while maintaining compile-time guarantees.

Read more →
5

❤️

4 people reacted.

中年(중년)中小企業(중소기업) 開發者(개발자), 90年代(년대) Console Gamer(콘솔 게이머). 좋은 하루를 繼續(계속)해 나아간다. 좋은 하루가 모이면 좋은 人生(인생)이 된다.

韓国人のプログラマー、40代、小学生の息子とゲームするのが幸せ😃💕龍が如く 、ゼルダの伝説、マリオ、ピクミン好き

「いい1日を続ける」
いい1日を続けていけば、いい人生になる!

니가인외보다귀여워? 인외보다멋져? 인외보다예뻐? 인외보다잘생겼어? 인외면퍼가

🌉 bridged from chomu.dev on Bluesky by Bridgy Fed

Privacy advocate 〱 Malware analyst 〱 Cybersecurity
〰️ ⁠InfoSec 〰️ ⁠DFIR 〰️ ⁠CISSP 〰️ ⁠黑客 〰️ ⁠Katzenmädchen
:ablobcatmaracasevil: ⁽ʰᵒᵖᵉ ʸᵒᵘ ˡⁱᵏᵉ ᶜᵒʳⁿʸ ʲᵒᵏᵉˢ ᵃⁿᵈ ᶜᵃᵗˢ⁾

【 Professional Computer Booper 】
Even my brain has certs (asd,adhd,...)
Gender: a threat model (they/them), but idc really

”Hän on vähän sellainen kusilonkki”

__😺😷🔛Ⓜ️🦠🏺🐈‍⬛🩷🩵🔬🧑🏻‍💻🛏️💤__

chrome://geckoview/content/config.xhtml

An intersectionalist, feminist, and socialist guy living in Seoul (UTC+09:00). @tokolovesme금강토's spouse. Who's behind @fedifyFedify: ActivityPub server framework, @holloHollo :hollo:, and @botkitBotKit by Fedify :botkit:. Write some free software in , , , & . They/them.

서울에 사는 交叉女性主義者이자 社會主義者. 金剛兔(@tokolovesme금강토)의 配偶者. @fedifyFedify: ActivityPub server framework, @holloHollo :hollo:, @botkitBotKit by Fedify :botkit: 메인테이너. , , , 等으로 自由 소프트웨어 만듦.

()