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

#737: Added cd command to shell commandlet #748

Conversation

leonrohne27
Copy link
Contributor

Fixes: #737

Implements:

  • Added the command "cd" to the shell commandlet that allows the user to switch the directory inside the ide shell

Added the command cd to the shell commandlet that allows the user to switch the directory inside the ide shell
@coveralls
Copy link
Collaborator

coveralls commented Nov 7, 2024

Pull Request Test Coverage Report for Build 12085518140

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 52 unchanged lines in 1 file lost coverage.
  • Overall coverage decreased (-0.1%) to 66.998%

Files with Coverage Reduction New Missed Lines %
com/devonfw/tools/ide/commandlet/ShellCommandlet.java 52 3.18%
Totals Coverage Status
Change from base Build 12085044164: -0.1%
Covered Lines: 6533
Relevant Lines: 9402

💛 - Coveralls

Copy link
Contributor

@jan-vcapgemini jan-vcapgemini left a comment

Choose a reason for hiding this comment

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

Thanks for implementing the cd command to our Shell. I've added some CRs, please resolve.

leonrohne27 and others added 6 commits November 19, 2024 10:23
added current working directory path to prompt name
improved existing directory check
adjusted exit codes
removed whitespace from ide prompt
Copy link
Contributor

@jan-vcapgemini jan-vcapgemini left a comment

Choose a reason for hiding this comment

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

Thanks, LGTM. Ready for review.

@hohwille hohwille added this to the release:2024.12.001 milestone Nov 28, 2024
Copy link
Member

@hohwille hohwille left a comment

Choose a reason for hiding this comment

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

@leonrohne27 thanks for your PR. This is nice work and you digged to find the right code locations to implement the story. 👍
I left 2 simple review comments. If you have the time left to address them this would be lovely and we can then merge. Thanks!

Cd without arguments now brings the user to the home path, changed the prompt String
@hohwille hohwille merged commit 9ad21db into devonfw:main Nov 29, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

Add cd command to shell commandlet
4 participants