java.lang.Object
org.aya.cli.interactive.ReplConfig
- All Implemented Interfaces:
AutoCloseable
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal kala.control.Option<Path>boolean@NotNull org.aya.generic.util.NormalizeMode@NotNull org.aya.prettier.AyaPrettierOptions@NotNull String@UnknownNullability RenderOptionsbooleanDisables welcome message, echoing info, etc. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()static @NotNull ReplConfigstatic @NotNull ReplConfigstatic @NotNull ReplConfigstatic com.google.gson.GsonBuilder
-
Field Details
-
configFile
-
prompt
-
normalizeMode
@NotNull public @NotNull org.aya.generic.util.NormalizeMode normalizeMode -
prettierOptions
@NotNull public @NotNull org.aya.prettier.AyaPrettierOptions prettierOptions -
enableUnicode
public boolean enableUnicode -
silent
public boolean silentDisables welcome message, echoing info, etc. -
renderOptions
-
-
Constructor Details
-
ReplConfig
-
-
Method Details
-
loadFromDefault
@NotNull public static @NotNull ReplConfig loadFromDefault() throws IOException, com.google.gson.JsonParseException- Throws:
IOExceptioncom.google.gson.JsonParseException
-
loadFrom
@NotNull public static @NotNull ReplConfig loadFrom(@NotNull @NotNull Path file) throws IOException, com.google.gson.JsonParseException - Throws:
IOExceptioncom.google.gson.JsonParseException
-
loadFrom
@VisibleForTesting @NotNull public static @NotNull ReplConfig loadFrom(@NotNull @NotNull kala.control.Option<Path> file, @NotNull @NotNull String jsonText) throws com.google.gson.JsonParseException - Throws:
com.google.gson.JsonParseException
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
IOException
-
newGsonBuilder
@VisibleForTesting public static com.google.gson.GsonBuilder newGsonBuilder()
-