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

Added stub method in to handle duplicates in sub-commands DAT-19049 #6558

Merged
merged 16 commits into from
Dec 11, 2024

Conversation

wwillard7800
Copy link
Contributor

This method allows commands to mark themselves as "stubs", which can be implemented to handle situations where an extension that provides the command does not exist. Unfortunately, we have to do this because Pico does not allow duplicate sub-commands.

Impact

  • Bug fix (non-breaking change which fixes expected existing functionality)
  • Enhancement/New feature (adds functionality without impacting existing logic)
  • Breaking change (fix or feature that would cause existing functionality to change)

Description

Things to be aware of

Things to worry about

Additional Context

@@ -184,6 +189,15 @@ public SortedSet<CommandDefinition> getCommands(boolean includeInternal) {
return Collections.unmodifiableSortedSet(commands);

}
private static String findKeyInMapIgnoreCase(String key, Map<String, String[]> map) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

What is the idea behind this findKeyInMapIgnoreCase ?

@filipelautert filipelautert self-assigned this Dec 4, 2024
DAT-19049
* [DAT-18890] Implement copy method in FilesystemProjectCopier, change visibility in InitCopyCommandStep.

* [DAT-18890] Enhance error message

* [DAT-18890] Copy files using copyLarge. Format file.
…cognized as stubs (#6328)

* Added a stub attribute to CommandStep interface

DAT-18431

* Refactored to support stub commands

DAT-18431

* Refactored code to avoid duplication

DAT-18431
@abrackx abrackx merged commit 903cc39 into master Dec 11, 2024
35 checks passed
@abrackx abrackx deleted the DAT-19049 branch December 11, 2024 21:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants