public static PowerShellScriptMode fromString()

in powershell-common/src/main/java/jetbrains/buildServer/powershell/common/PowerShellScriptMode.java [23:30]


  public static PowerShellScriptMode fromString(@Nullable String sMode) {
    for (PowerShellScriptMode mode : values()) {
      if (mode.getValue().equals(sMode)) {
        return mode;
      }
    }
    return null;
  }