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

devonfw / IDEasy / 22284264868

22 Feb 2026 08:00PM UTC coverage: 70.75% (+0.3%) from 70.474%
22284264868

Pull #1714

github

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

4063 of 6346 branches covered (64.02%)

Branch coverage included in aggregate %.

10636 of 14430 relevant lines covered (73.71%)

3.1 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
    LOG.info(IdeLogLevel.PROCESSABLE.getSlf4jMarker(), 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