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
니가인외보다귀여워? 인외보다멋져? 인외보다예뻐? 인외보다잘생겼어? 인외면퍼가

🌉 bridged from chomu.dev on Bluesky by Bridgy Fed

フォロー非推奨

20↑

居住地のタイムゾーンはEEST/EETです

ここの鯖缶をやってなかったりします。
情緒不安定です。
たまにアークナイツの話をしますが基本大陸版のbilibili鯖の話です。

コンテンツの表示にログインを必須にしている方からのフォローリクエストは拒否しています

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: 메인테이너. , , , 等으로 自由 소프트웨어 만듦.

()

Welcome to the Newsmast Programming Channel. A curated feed of posts from the Fediverse, handmade by @newsmast@newmast.social, and broadcasting to Bluesky (if you've opted-in via @bsky.brid.gy)!

To post to the community just add to your post. You can create a list to follow this account, and exclude the posts from your home timeline.

Wondering why you’ve been boosted by this account? Check out this thread: newsmast.social/@newsmast/1119