Skip to content

#1392: Smart completions#1859

Draft
HenokLachmann wants to merge 14 commits intodevonfw:mainfrom
HenokLachmann:feature/#1392-smart-completions
Draft

#1392: Smart completions#1859
HenokLachmann wants to merge 14 commits intodevonfw:mainfrom
HenokLachmann:feature/#1392-smart-completions

Conversation

@HenokLachmann
Copy link
Copy Markdown
Contributor

This PR fixes TodoIssueID #1392

Implemented changes:

Auto-completion is extended for the Mvn commandlet. It enables autocompletion for the ShellCommandlet as well as for bash. Completion is supported for the last word as well as intermittent words on a commandline. Completion covers the following:

  • Typical maven goals like clean, install, package
  • Boolean flags like --fail-fast
  • Definitions like -Dexec.mainClass=<classname>

Whitespace is excluded after a completed trailing = by differentiating partial from full completions.

A bug existed in the current implementation that would complete the exit subcommand infinitely. This is fixed by this PR.


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

@github-project-automation github-project-automation Bot moved this to 🆕 New in IDEasy board Apr 27, 2026
@HenokLachmann HenokLachmann self-assigned this Apr 27, 2026
@HenokLachmann HenokLachmann added completion auto-completion in bash or build in CLI shell build-in shell with advanced completion labels Apr 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

completion auto-completion in bash or build in CLI shell build-in shell with advanced completion

Projects

Status: 🆕 New

Development

Successfully merging this pull request may close these issues.

1 participant