Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(complete): Env hook for dynamic completions #5671

Merged
merged 2 commits into from
Aug 12, 2024
Merged

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

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