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

devonfw / IDEasy / 22303886886

23 Feb 2026 11:19AM UTC coverage: 70.647% (+0.2%) from 70.474%
22303886886

Pull #1714

github

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

4069 of 6360 branches covered (63.98%)

Branch coverage included in aggregate %.

10644 of 14466 relevant lines covered (73.58%)

3.1 hits per line

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

43.75
cli/src/main/java/com/devonfw/tools/ide/commandlet/UninstallPluginCommandlet.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.property.PluginProperty;
8
import com.devonfw.tools.ide.property.ToolProperty;
9
import com.devonfw.tools.ide.tool.ToolCommandlet;
10
import com.devonfw.tools.ide.tool.plugin.PluginBasedCommandlet;
11

12
/**
13
 * {@link Commandlet} to install a tool.
14
 *
15
 * @see ToolCommandlet#install()
16
 */
17
public class UninstallPluginCommandlet extends Commandlet {
18

19
  private static final Logger LOG = LoggerFactory.getLogger(UninstallPluginCommandlet.class);
4✔
20

21
  /** The tool to install. */
22
  public final ToolProperty tool;
23

24
  /** The optional version to set and install. */
25
  public final PluginProperty plugin;
26

27
  /**
28
   * The constructor.
29
   *
30
   * @param context the {@link IdeContext}.
31
   */
32
  public UninstallPluginCommandlet(IdeContext context) {
33

34
    super(context);
3✔
35
    addKeyword(getName());
4✔
36
    this.tool = add(new ToolProperty("", true, "tool"));
11✔
37
    this.plugin = add(new PluginProperty("", true, "plugin"));
11✔
38
  }
1✔
39

40
  @Override
41
  public String getName() {
42

43
    return "uninstall-plugin";
2✔
44
  }
45

46
  @Override
47
  protected void doRun() {
48
    ToolCommandlet commandlet = this.tool.getValue();
×
49
    String plugin = this.plugin.getValue();
×
50

51
    if (commandlet instanceof PluginBasedCommandlet cmd) {
×
52
      cmd.uninstallPlugin(cmd.getPlugin(plugin));
×
53
    } else {
54
      LOG.warn("Tool {} does not support plugins.", tool.getName());
×
55
    }
56
  }
×
57

58
  @Override
59
  public ToolCommandlet getToolForCompletion() {
60
    return this.tool.getValue();
×
61
  }
62
}
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