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

[27.x] cli/command/completion: alias ValidArgsFn instead of strong type #5828

Draft
wants to merge 1 commit into
base: 27.x
Choose a base branch
from

Conversation

thaJeztah
Copy link
Member

This may help with signature changes in Cobra 1.9.0, which defines a new CompletionFunc type.

- What I did

- How I did it

- How to verify it

- Human readable description for the release notes

- A picture of a cute animal (not mandatory but encouraged)

This may help with signature changes in Cobra 1.9.0, which defines
a new CompletionFunc type.

Signed-off-by: Sebastiaan van Stijn <[email protected]>
@thaJeztah thaJeztah added this to the 27.5.2 milestone Feb 16, 2025
@codecov-commenter
Copy link

codecov-commenter commented Feb 16, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 58.58%. Comparing base (915f5cf) to head (ae3d4db).

Additional details and impacted files
@@           Coverage Diff           @@
##             27.x    #5828   +/-   ##
=======================================
  Coverage   58.58%   58.58%           
=======================================
  Files         346      346           
  Lines       29322    29322           
=======================================
  Hits        17178    17178           
  Misses      11171    11171           
  Partials      973      973           

@ccoVeille
Copy link

I confirm your fix should work. But please note I provided a PR to fix the issue in cobra

@thaJeztah
Copy link
Member Author

Thanks! I opened a draft PR to verify current Cobra main, and locally testing indeed showed it to work; pushed a draft PR (#5829) to also let CI do its thing, but indeed looks fixed. Thanks!!

@tassa-yoniso-manasi-karoto

I can second @ccoVeille that this does build successfully with cobra v1.9.0

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.

4 participants