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

devonfw / IDEasy / 12181235589

05 Dec 2024 01:58PM UTC coverage: 66.902% (-0.02%) from 66.917%
12181235589

push

github

web-flow
#508: enabled autocompletion for commandlet options (#833)

2527 of 4130 branches covered (61.19%)

Branch coverage included in aggregate %.

6577 of 9478 relevant lines covered (69.39%)

3.06 hits per line

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

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

3
import com.devonfw.tools.ide.context.IdeContext;
4
import com.devonfw.tools.ide.log.IdeLogLevel;
5
import com.devonfw.tools.ide.version.IdeVersion;
6

7
/**
8
 * Prints the IDEasy version and exits
9
 */
10
public class VersionCommandlet extends Commandlet {
11

12
  /**
13
   * The constructor.
14
   *
15
   * @param context the {@link IdeContext}.
16
   */
17
  public VersionCommandlet(IdeContext context) {
18

19
    super(context);
3✔
20
    addKeyword(getName(), "-v");
5✔
21
  }
1✔
22

23
  @Override
24
  public String getName() {
25

26
    return "--version";
2✔
27
  }
28

29
  @Override
30
  public boolean isIdeRootRequired() {
31

32
    return false;
2✔
33
  }
34

35
  @Override
36
  public boolean isProcessableOutput() {
37

38
    return true;
×
39
  }
40

41
  @Override
42
  public void run() {
43

44
    this.context.level(IdeLogLevel.PROCESSABLE).log(IdeVersion.get());
×
45
  }
×
46
}
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