Skip to content

Conversation

epage
Copy link
Member

@epage epage commented Aug 12, 2024

Benefits over CompleteCommand

  • Faster, avoiding and extra Command creation and CLI parsing
  • More flexible
    • Easier to customize for more shells
    • Easier to customize for how to invoke (in this case env variable)
    • No risk for interfering with CLI parsing validation or derive logic

Fixes #3930

@epage epage force-pushed the env branch 2 times, most recently from 27c8c75 to 3d3497c Compare August 12, 2024 16:24
@epage epage enabled auto-merge August 12, 2024 16:25
@epage epage merged commit 6f88091 into clap-rs:master Aug 12, 2024
25 checks passed
@epage epage deleted the env branch August 12, 2024 16:54
@epage epage mentioned this pull request Mar 13, 2025
2 tasks
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.

Switch native completions to encourage env var initialization
1 participant