#2133: add repository navigation option to icd command#2153
Open
Ali-Shariati-Najafabadi wants to merge 2 commits into
Open
#2133: add repository navigation option to icd command#2153Ali-Shariati-Najafabadi wants to merge 2 commits into
Ali-Shariati-Najafabadi wants to merge 2 commits into
Conversation
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 #2133
Implemented changes:
-r | --repository [<repository>]option to theicdshell function incli/src/main/package/functions<repository>is omitted, the project name is used as the repository name (fallback)-wis not given, workspacemainis searched first, then all other workspaces;icdnavigates into the first workspace containing the repository-wis given explicitly, only that workspace is searched (no fallback)icdfails withError: Repository '<name>' not found in any workspace.icd --helpusage/options textdocumentation/cli.adocwith a description and example of the new optionTesting instructions
mkdir -p /tmp/icdtest/IDEasy/workspaces/main/cli && mkdir -p /tmp/icdtest/IDEasy/workspaces/dev/backendIDE_ROOT=/tmp/icdtestandIDE_HOME=""before sourcingcli/src/main/package/functionsicd -p IDEasy -r cli→ expect cwd/tmp/icdtest/IDEasy/workspaces/main/cli(found inmain)icd -p IDEasy -r backend→ expect cwd/tmp/icdtest/IDEasy/workspaces/dev/backend(not inmain, found indev)icd -p IDEasy -r(no repository given) → expect cwd/tmp/icdtest/IDEasy/workspaces/main/IDEasy(fallback to project name)icd -p IDEasy -r nope→ expectError: Repository 'nope' not found in any workspace.and exit code1Checklist for this PR
mvn clean testlocally all tests pass and build is successful#«issue-id»: «brief summary»In Progressand assigned to you or there is no issueinternal