public static PowerShellExecutionMode fromString()

in powershell-common/src/main/java/jetbrains/buildServer/powershell/common/PowerShellExecutionMode.java [24:33]


  public static PowerShellExecutionMode fromString(@Nullable String sMode) {
    if (StringUtil.isEmptyOrSpaces(sMode)) return STDIN;

    for (PowerShellExecutionMode mode : values()) {
      if (mode.getValue().equals(sMode)) {
        return mode;
      }
    }
    return null;
  }