Skip to content

feat: pass arg_index to custom completions#6286

Open
feraxhp wants to merge 1 commit intoclap-rs:masterfrom
feraxtx:feat/complete_at
Open

feat: pass arg_index to custom completions#6286
feraxhp wants to merge 1 commit intoclap-rs:masterfrom
feraxtx:feat/complete_at

Conversation

@feraxhp
Copy link

@feraxhp feraxhp commented Feb 27, 2026

Simple implementation of #6284

@feraxhp feraxhp force-pushed the feat/complete_at branch 2 times, most recently from 6cc0a68 to eb5377e Compare February 27, 2026 01:32
///
/// This is useful when predefined value hints are not enough.
/// Used for complex arg completions sending the arg_index in num_args.
pub trait PositionalValueCompleter: Send + Sync {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What was your reason for going with this design?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants