Skip to content

Conversation

@quinn-harper
Copy link
Contributor

In some cases using the DefaultFactory when instantiating CommandLine could cause subcommands that require a specific implementation to fail to be created. This commit makes the CommandLine instance use the IFactory implementation passed by the user to the AutoComplete command (if any) which should resolve this issue.

Closes #601

In some cases using the DefaultFactory when instantiating CommandLine
could cause subcommands that require a specific IFactory
implementation to fail to be created. This commit makes the
CommandLine instance created by AutoComplete command use the
IFactory passed to the command (if any).
@codecov-io
Copy link

Codecov Report

Merging #602 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master     #602   +/-   ##
=========================================
  Coverage     98.24%   98.24%           
  Complexity      361      361           
=========================================
  Files             4        4           
  Lines          4106     4106           
  Branches       1010     1010           
=========================================
  Hits           4034     4034           
  Misses           17       17           
  Partials         55       55
Impacted Files Coverage Δ Complexity Δ
src/main/java/picocli/AutoComplete.java 98.69% <100%> (ø) 117 <0> (ø) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update af622c1...f656e10. Read the comment docs.

@remkop remkop added this to the 3.9.2 milestone Jan 14, 2019
@remkop remkop added type: enhancement ✨ theme: auto-completion An issue or change related to auto-completion labels Jan 14, 2019
@remkop remkop merged commit 1d3fac3 into remkop:master Jan 14, 2019
@remkop
Copy link
Owner

remkop commented Jan 14, 2019

Merged into master.
Thank you for the pull request!

@quinn-harper quinn-harper deleted the pass-factory-to-commandline-autocomplete branch January 14, 2019 13:07
remkop added a commit that referenced this pull request Jan 17, 2019
@remkop
Copy link
Owner

remkop commented Jan 17, 2019

Updated the release notes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

theme: auto-completion An issue or change related to auto-completion type: enhancement ✨

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AutoComplete fails if using a custom IFactory implementation even if provided with --factory

3 participants