forked from dagger/dagger
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: shell autocomplete (dagger#9063)
* chore: consolidate shell command Run and RunState We don't need two separate methods for this - instead, we can validate it using a similar mechanism for how we do the args. This will allow us to more easily determine if a builtin supports a context input, so we can choose whether it should be part of auto-complete in a certain context. Signed-off-by: Justin Chadwell <[email protected]> * feat: add shell completion Signed-off-by: Justin Chadwell <[email protected]> * tests: add shell autocompletion tests Signed-off-by: Justin Chadwell <[email protected]> * Support function lookup fallbacks This add support for more stuff, but completions for modules other than the currently loaded one aren't supported yet. Signed-off-by: Helder Correia <[email protected]> * Update tests Signed-off-by: Helder Correia <[email protected]> --------- Signed-off-by: Justin Chadwell <[email protected]> Signed-off-by: Helder Correia <[email protected]> Co-authored-by: Helder Correia <[email protected]>
- Loading branch information
Showing
3 changed files
with
597 additions
and
41 deletions.
There are no files selected for viewing
This file contains 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
Oops, something went wrong.