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

devonfw / IDEasy / 27760985813

18 Jun 2026 12:56PM UTC coverage: 71.296% (-0.03%) from 71.321%
27760985813

Pull #2047

github

web-flow
Merge cee4e7ed4 into e533f3684
Pull Request #2047: #2032: fixed processable logging

4687 of 7276 branches covered (64.42%)

Branch coverage included in aggregate %.

12101 of 16271 relevant lines covered (74.37%)

3.15 hits per line

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

0.0
cli/src/main/java/com/devonfw/tools/ide/context/IdeStartContext.java
1
package com.devonfw.tools.ide.context;
2

3
import java.util.Locale;
4

5
import com.devonfw.tools.ide.log.IdeLogLevel;
6
import com.devonfw.tools.ide.log.IdeLogListener;
7
import com.devonfw.tools.ide.network.ReadOfflineMode;
8

9
/**
10
 * Contains the options configurable via {@link com.devonfw.tools.ide.cli.Ideasy} CLI. The {@link IdeStartContext} is therefore the object configured at
11
 * bootstrapping and then used to create the actual {@link IdeContext} from it.
12
 *
13
 * @see com.devonfw.tools.ide.commandlet.ContextCommandlet
14
 */
15
public interface IdeStartContext extends ReadOfflineMode {
16

17
  /**
18
   * @return the {@link IdeLogListener}.
19
   */
20
  IdeLogListener getLogListener();
21

22
  /**
23
   * @return the minimum allowed {@link IdeLogLevel} (threshold) for console output (see --debug and --trace options).
24
   */
25
  IdeLogLevel getLogLevelConsole();
26

27
  /**
28
   * @return the minimum allowed {@link IdeLogLevel} (threshold) for SLF4J and JUL logger (can be lower than {@link #getLogLevelConsole()} for finer details in
29
   *     logfile).
30
   */
31
  IdeLogLevel getLogLevelLogger();
32

33
  /**
34
   * @param level the {@link IdeLogLevel} to check.
35
   * @return {@code true} if the given {@link IdeLogLevel} is actually enabled in the console, {@code }false} otherwise.
36
   */
37
  default boolean isLogLevelEnabled(IdeLogLevel level) {
38
    return level.ordinal() >= getLogLevelConsole().ordinal();
×
39
  }
40

41
  /**
42
   * @return {@code true} in case of quiet mode (reduced output), {@code false} otherwise.
43
   */
44
  boolean isQuietMode();
45

46
  /**
47
   * @return {@code true} in case of batch mode (no {@link IdeContext#askForInput(String) user-interaction}), {@code false} otherwise.
48
   */
49
  boolean isBatchMode();
50

51
  /**
52
   * @return {@code true} in case of force mode, {@code false} otherwise.
53
   */
54
  boolean isForceMode();
55

56
  /**
57
   * @return {@code true} in case of privacy mode, {@code false} otherwise.
58
   */
59
  boolean isPrivacyMode();
60

61
  /**
62
   * @return {@code true} to force pulling repositories (e.g. settings from code repository), {@code false} otherwise.
63
   */
64
  boolean isForcePull();
65

66
  /**
67
   * @return {@code true} to force plugin installation (e.g. if already installed according to marker file), {@code false} otherwise.
68
   */
69
  boolean isForcePlugins();
70

71
  /**
72
   * @return {@code true} to force repositories (including cloning inactive and pull existing ones), {@code false} otherwise.
73
   */
74
  boolean isForceRepositories();
75

76
  /**
77
   * @return {@code true} if updates should be skipped, {@code false} otherwise. If updates are skipped and the configured version is a
78
   *     {@link com.devonfw.tools.ide.version.VersionIdentifier#isPattern() pattern} (e.g. "*" or "21*") and a matching version is already installed (e.g.
79
   *     "21.0.3_9"), then updates will be skipped even if they are available (e.g. "21.0.9_10").
80
   */
81
  boolean isSkipUpdatesMode();
82

83
  /**
84
   * @return {@code true} if no-colours mode is activated (--no-colours), {@code false} otherwise.
85
   */
86
  boolean isNoColorsMode();
87

88
  /**
89
   * @return the current {@link Locale}. Either configured via command-line option or {@link Locale#getDefault() default}.
90
   */
91
  Locale getLocale();
92

93
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc