Skip to content

#1716 add claude cli commandlet#1926

Open
AdemZarrouki wants to merge 6 commits into
devonfw:mainfrom
AdemZarrouki:feature/1716-add-claude-cli-commandlet
Open

#1716 add claude cli commandlet#1926
AdemZarrouki wants to merge 6 commits into
devonfw:mainfrom
AdemZarrouki:feature/1716-add-claude-cli-commandlet

Conversation

@AdemZarrouki
Copy link
Copy Markdown
Contributor

@AdemZarrouki AdemZarrouki commented May 12, 2026

This PR fixes #1716

Implemented changes:

  • Added Claude commandlet
  • Added test suite with install and run tests
  • Added help texts, license information, and test suite
  • Added CHANGELOG entry for the new feature

Checklist for this PR

Make sure everything is checked before merging this PR. For further info please also see
our DoD.

  • When running mvn clean test locally all tests pass and build is successful
  • PR title is of the form #«issue-id»: «brief summary» (e.g. #921: fixed setup.bat). If no issue ID exists, title only.
  • PR top-level comment summarizes what has been done and contains link to addressed issue(s)
  • PR and issue(s) have suitable labels
  • Issue is set to In Progress and assigned to you or there is no issue (might happen for very small PRs)
  • You followed all coding conventions
  • You have added the issue implemented by your PR in CHANGELOG.adoc unless issue is labeled
    with internal

Checklist for tool commandlets

Have you added a new «tool» as commandlet? There are the following additional checks:

  • The tool can be installed automatically (during setup via settings) or via the commandlet call
  • The tool is isolated in its IDEasy project, see Sandbox Principle
  • The new tool is added to the table of tools in LICENSE.asciidoc
  • The new commandlet is a command-wrapper for «tool»
  • Proper help texts for all supported languages are added here
  • The new commandlet installs potential dependencies automatically
  • The variables «TOOL»_VERSION and «TOOL»_EDITION are honored by your commandlet
  • The new commandlet is tested on all platforms it is available for or tested on all platforms that are in scope of the linked issue

How to Test:

  • Run ide shell
  • type ide --help -> in the listed commandlet claude should be present
  • type ide install claude -> tool should be installed successfully
  • After successfull installation type claude --version -> the version installe dshould be displayed
  • After successfull installation type claude --help -> should display the right arguments to use with the tool claude

@coveralls
Copy link
Copy Markdown
Collaborator

coveralls commented May 12, 2026

Coverage Report for CI Build 25788295672

Coverage decreased (-0.02%) to 70.657%

Details

  • Coverage decreased (-0.02%) from the base build.
  • Patch coverage: No coverable lines changed in this PR.
  • 9 coverage regressions across 2 files.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

9 previously-covered lines in 2 files lost coverage.

File Lines Losing Coverage Coverage
com/devonfw/tools/ide/commandlet/CommandletManagerImpl.java 8 90.45%
com/devonfw/tools/ide/version/VersionSegment.java 1 89.76%

Coverage Stats

Coverage Status
Relevant Lines: 15479
Covered Lines: 11399
Line Coverage: 73.64%
Relevant Branches: 6918
Covered Branches: 4426
Branch Coverage: 63.98%
Branches in Coverage %: Yes
Coverage Strength: 3.11 hits per line

💛 - Coveralls

@AdemZarrouki AdemZarrouki marked this pull request as ready for review May 12, 2026 11:36
@AdemZarrouki AdemZarrouki self-assigned this May 12, 2026
@AdemZarrouki AdemZarrouki added commandlet ide sub-command claude labels May 12, 2026
@AdemZarrouki AdemZarrouki moved this from 🆕 New to Team Review in IDEasy board May 12, 2026
@AdemZarrouki AdemZarrouki force-pushed the feature/1716-add-claude-cli-commandlet branch from b76c1e1 to f5696ce Compare May 13, 2026 08:42
@AdemZarrouki AdemZarrouki requested a review from MarvMa May 13, 2026 09:23
@MarvMa
Copy link
Copy Markdown
Contributor

MarvMa commented May 15, 2026

I tried running the claude commandlet. The installation works as expected but on both windows and MacOS ARM I received the following error message:

Warning: no stdin data received in 3s, proceeding without it. If piping from a slow command, redirect stdin explicitly: < /dev/null to skip, or wait longer.
Error: Input must be provided either through stdin or as a prompt argument when using --print
Running command 'C:\Users\...\projects\IDEasy\software\claude\claude.exe'
failed with exit code 1!
Logfile can be found at C:\Users\...\projects\_ide\logs\2026\05\15\IDEasy-ide-claude-15-37-13.log
Running command 'C:\Users\...\projects\IDEasy\software\claude\claude.exe'
failed with exit code 1!
Step 'ide' ended with failure.
ide (claude) failed after PT7.932S

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

claude commandlet ide sub-command

Projects

Status: Team Review

Development

Successfully merging this pull request may close these issues.

Add claude-cli as software package

3 participants