• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

devonfw / IDEasy / 22315552991

23 Feb 2026 04:40PM UTC coverage: 70.563% (+0.09%) from 70.474%
22315552991

Pull #1714

github

web-flow
Merge 7d88da975 into 379acdc9d
Pull Request #1714: #404: #1713: advanced logging

4081 of 6382 branches covered (63.95%)

Branch coverage included in aggregate %.

10644 of 14486 relevant lines covered (73.48%)

3.09 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

66.67
cli/src/main/java/com/devonfw/tools/ide/commandlet/VersionCommandlet.java
1
package com.devonfw.tools.ide.commandlet;
2

3
import org.slf4j.Logger;
4
import org.slf4j.LoggerFactory;
5

6
import com.devonfw.tools.ide.context.IdeContext;
7
import com.devonfw.tools.ide.log.IdeLogLevel;
8
import com.devonfw.tools.ide.version.IdeVersion;
9

10
/**
11
 * Prints the IDEasy version and exits
12
 */
13
public class VersionCommandlet extends Commandlet {
14

15
  private static final Logger LOG = LoggerFactory.getLogger(VersionCommandlet.class);
4✔
16

17
  /**
18
   * The constructor.
19
   *
20
   * @param context the {@link IdeContext}.
21
   */
22
  public VersionCommandlet(IdeContext context) {
23

24
    super(context);
3✔
25
    addKeyword("--version", "-v");
4✔
26
  }
1✔
27

28
  @Override
29
  public String getName() {
30

31
    return "version";
2✔
32
  }
33

34
  @Override
35
  public boolean isIdeRootRequired() {
36

37
    return false;
2✔
38
  }
39

40
  @Override
41
  public boolean isProcessableOutput() {
42

43
    return true;
×
44
  }
45

46
  @Override
47
  protected void doRun() {
48

49
    IdeLogLevel.PROCESSABLE.log(LOG, IdeVersion.getVersionString());
×
50
  }
×
51
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc