#2134: Add auto-completion for icd command#2207
Open
Ali-Shariati-Najafabadi wants to merge 4 commits into
Open
#2134: Add auto-completion for icd command#2207Ali-Shariati-Najafabadi wants to merge 4 commits into
Ali-Shariati-Najafabadi wants to merge 4 commits into
Conversation
Collaborator
Coverage Report for CI Build 30081059314Coverage increased (+0.03%) to 72.594%Details
Uncovered ChangesNo uncovered changes found. Coverage RegressionsNo coverage regressions found. Coverage Stats💛 - Coveralls |
Contributor
|
I manually verified the completion behavior:
However, the automated test suite is currently failing:
|
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR fixes #2134
Implemented changes:
icdcommand:icd -p [Tab]suggests available IDEasy projects (directories underIDE_ROOTcontainingsettingsandworkspaces)icd -p <project> -w [Tab]suggests the workspaces of that project (or of the current/inferred project if-pwas omitted)icd -p <project> -r [Tab](optionally with-w <workspace>) suggests the repositories found inside the relevant workspace(s)cli/src/main/package/functions)documentation/cli.adoccli/src/test/integration-tests/icd-completion.shthat simulatesCOMP_WORDS/COMP_CWORDand assertsCOMPREPLYfor all three completion cases plus the fallback flag listTesting instructions
cli/src/main/package/functionsin a bash shell withIDE_ROOTset to a directory containing at least one IDEasy project (withsettingsandworkspacessubfolders)icd -pand press[Tab]→ available projects are listedicd -p <project> -wand press[Tab]→ workspaces of that project are listedicd -p <project> -rand press[Tab]→ repositories inside the project's workspace(s) are listedcli/src/test/all-tests.sh(or just the newicd-completion.shintegration test) to verify automated coverageChecklist for this PR
mvn clean testlocally all tests pass and build is successful#«issue-id»: «brief summary»In Progressand assigned to youinternal