feat(completion): add API field completion and revamp shell predictors - #448
Merged
Conversation
thde
commented
Aug 27, 2026
Improve the predictor package to provide structured shell completions, dynamic API resource resolution, and automatic flag help/placeholder enrichment. - Introduce internal/apifield with known API field defaults and values, plus a Kong PostBuild hook to automatically populate placeholders and append available values to flag help texts. - Introduce internal/apiresource to resolve command names and aliases to Kubernetes API GroupVersionKinds dynamically. - Introduce internal/completion with namespaced predictors (local:*, client:*, apifield:*) and lazy API client initialization. - Update all CLI verbs (create, update, exec, auth, apply, delete, edit, get, logs, copy) to use namespaced completion tags. - Remove redundant Kong variable helper functions across create and update. - Add comprehensive unit tests for completion, field enrichment, and resource resolution.
thde
force-pushed
the
thde/completion
branch
from
September 1, 2026 12:38
a921517 to
0ffc977
Compare
pawelkuc
approved these changes
Sep 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Improve the predictor package to provide structured shell completions, dynamic API resource resolution, and automatic flag help/placeholder enrichment.