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

devonfw / IDEasy / 19650569677

24 Nov 2025 09:57PM UTC coverage: 69.156% (+0.1%) from 69.024%
19650569677

Pull #1593

github

web-flow
Merge b593a72bf into 0e1be7b6c
Pull Request #1593: #1144: #1145: CVE warnings and suggestions

3613 of 5721 branches covered (63.15%)

Branch coverage included in aggregate %.

9387 of 13077 relevant lines covered (71.78%)

3.15 hits per line

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

84.62
cli/src/main/java/com/devonfw/tools/ide/commandlet/UpgradeCommandlet.java
1
package com.devonfw.tools.ide.commandlet;
2

3
import com.devonfw.tools.ide.context.IdeContext;
4
import com.devonfw.tools.ide.property.EnumProperty;
5
import com.devonfw.tools.ide.tool.IdeasyCommandlet;
6
import com.devonfw.tools.ide.tool.ToolInstallation;
7

8
/**
9
 * {@link Commandlet} to upgrade the version of IDEasy
10
 */
11
public class UpgradeCommandlet extends Commandlet {
12

13
  /** Optional {@link UpgradeMode}. */
14
  public final EnumProperty<UpgradeMode> mode;
15

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

23
    super(context);
3✔
24
    addKeyword(getName());
4✔
25
    this.mode = add(new EnumProperty<>("--mode", false, null, UpgradeMode.class));
12✔
26
  }
1✔
27

28
  @Override
29
  public String getName() {
30

31
    return "upgrade";
2✔
32
  }
33

34
  @Override
35
  public boolean isIdeHomeRequired() {
36

37
    return false;
2✔
38
  }
39

40
  @Override
41
  public void run() {
42

43
    IdeasyCommandlet ideasy = new IdeasyCommandlet(this.context, this.mode.getValue());
10✔
44
    ToolInstallation installation = ideasy.install(false);
4✔
45
    if (installation.newInstallation()) {
3!
46
      this.context.interaction("It is recommended to run 'ide update' on your IDEasy projects now.");
×
47
    }
48
  }
1✔
49

50
}
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