Skip to content

feat: make suggestion providers accept CommandInput#594

Merged
jpenilla merged 13 commits into2.0.0-devfrom
feat/2.0.0/commandinput-suggestions
Dec 30, 2023
Merged

feat: make suggestion providers accept CommandInput#594
jpenilla merged 13 commits into2.0.0-devfrom
feat/2.0.0/commandinput-suggestions

Conversation

@Citymonstret
Copy link
Copy Markdown
Member

@Citymonstret Citymonstret commented Dec 25, 2023

This also fixes a ton of issues with suggestions for arguments that consume multiple strings.

includes #595, #599, #607

Todo:

  • loosen MethodSuggestionProvider requirements to allow for CommandInput parameters
  • update JavaDoc (SuggestionProvider, Suggestions)
  • add new test for a parser that consumes multiple tokens

Instead of relying on the parser to tell us how many arguments it wants, we just check if it's able to consume all the input.
@Citymonstret Citymonstret added this to the 2.0.0 milestone Dec 25, 2023
@github-actions
Copy link
Copy Markdown

github-actions bot commented Dec 25, 2023

Test Results

  85 files  +  1    85 suites  +1   13s ⏱️ -9s
520 tests +12  520 ✔️ +12  0 💤 ±0  0 ±0 
553 runs  +12  553 ✔️ +12  0 💤 ±0  0 ±0 

Results for commit fa5d690. ± Comparison against base commit 39c06a7.

♻️ This comment has been updated with latest results.

@Citymonstret Citymonstret force-pushed the feat/2.0.0/commandinput-suggestions branch from 58f7262 to 0aafdfa Compare December 25, 2023 10:19
@Citymonstret Citymonstret force-pushed the feat/2.0.0/commandinput-suggestions branch from 0aafdfa to fe5fb25 Compare December 25, 2023 11:40
@Citymonstret Citymonstret marked this pull request as ready for review December 25, 2023 19:57
@jpenilla jpenilla merged commit 52911ff into 2.0.0-dev Dec 30, 2023
@jpenilla jpenilla deleted the feat/2.0.0/commandinput-suggestions branch December 30, 2023 02:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants