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

fix: make findCommand deterministic #204

Merged
merged 18 commits into from Jul 19, 2021
Merged

fix: make findCommand deterministic #204

merged 18 commits into from Jul 19, 2021

Conversation

peternhale
Copy link
Contributor

@peternhale peternhale commented Jul 15, 2021

@W-9514894@
when duplicate commands are found across all plugins always choose the command from the plugin that appears first in pjson.oclif.plugins

when duplicate commands are found across all plugins always choose the command from the plugin that appears first in pjson.oclif.plugins
src/config/config.ts Outdated Show resolved Hide resolved
src/config/config.ts Show resolved Hide resolved
src/config/config.ts Show resolved Hide resolved
src/config/config.ts Outdated Show resolved Hide resolved
src/config/config.ts Outdated Show resolved Hide resolved
src/config/plugin.ts Outdated Show resolved Hide resolved
src/config/plugin.ts Outdated Show resolved Hide resolved
src/config/config.ts Outdated Show resolved Hide resolved
src/config/config.ts Outdated Show resolved Hide resolved
src/config/util.ts Outdated Show resolved Hide resolved
src/config/config.ts Show resolved Hide resolved
src/config/config.ts Outdated Show resolved Hide resolved
src/config/plugin.ts Outdated Show resolved Hide resolved
src/config/plugin.ts Outdated Show resolved Hide resolved
src/config/plugin.ts Outdated Show resolved Hide resolved
src/interfaces/command.ts Show resolved Hide resolved
src/interfaces/plugin.ts Outdated Show resolved Hide resolved
@peternhale peternhale requested a review from RodEsp July 16, 2021 12:35
Copy link
Contributor

@RodEsp RodEsp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests should check that the command is coming from the right plugin.

src/config/config.ts Outdated Show resolved Hide resolved
src/config/config.ts Outdated Show resolved Hide resolved
test/config/config.test.ts Outdated Show resolved Hide resolved
test/config/config.test.ts Outdated Show resolved Hide resolved
test/config/config.test.ts Outdated Show resolved Hide resolved
test/config/config.test.ts Outdated Show resolved Hide resolved
test/config/config.test.ts Outdated Show resolved Hide resolved
test/config/config.test.ts Outdated Show resolved Hide resolved
test/config/config.test.ts Outdated Show resolved Hide resolved
test/config/config.test.ts Outdated Show resolved Hide resolved
peternhale and others added 9 commits July 16, 2021 09:39
Co-authored-by: Rodrigo Espinosa de los Monteros <1084688+RodEsp@users.noreply.github.com>
Co-authored-by: Rodrigo Espinosa de los Monteros <1084688+RodEsp@users.noreply.github.com>
Co-authored-by: Rodrigo Espinosa de los Monteros <1084688+RodEsp@users.noreply.github.com>
Co-authored-by: Rodrigo Espinosa de los Monteros <1084688+RodEsp@users.noreply.github.com>
Co-authored-by: Rodrigo Espinosa de los Monteros <1084688+RodEsp@users.noreply.github.com>
Co-authored-by: Rodrigo Espinosa de los Monteros <1084688+RodEsp@users.noreply.github.com>
Co-authored-by: Rodrigo Espinosa de los Monteros <1084688+RodEsp@users.noreply.github.com>
Co-authored-by: Rodrigo Espinosa de los Monteros <1084688+RodEsp@users.noreply.github.com>
test/config/config.test.ts Outdated Show resolved Hide resolved
test/config/config.test.ts Outdated Show resolved Hide resolved
test/config/config.test.ts Show resolved Hide resolved
test/config/config.test.ts Show resolved Hide resolved
src/config/config.ts Outdated Show resolved Hide resolved
@RodEsp RodEsp requested a review from mdonnalley July 19, 2021 15:10
@RodEsp RodEsp dismissed mdonnalley’s stale review July 19, 2021 15:12

Requested changes have been addressed.

@RodEsp RodEsp merged commit 3a37a8c into master Jul 19, 2021
@RodEsp RodEsp deleted the phale/W-9514894-simple branch July 19, 2021 15:54
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.

None yet

3 participants